소스 검색

I lied. This really fixes the issue with blobs not hiding.

master
mort 8 년 전
부모
커밋
658cff6193
2개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 8
    0
      data/onload.js
  2. 1
    1
      package.json

+ 8
- 0
data/onload.js 파일 보기

@@ -267,6 +267,7 @@ window.addEventListener("keydown", function(evt) {
if (isMatch(keys.elem_deselect, evt)) {
active.blur();
blobList.hideBlobs();
return;
} else {
return;
}
@@ -275,6 +276,12 @@ window.addEventListener("keydown", function(evt) {
//User is typing a key to a blob
var c = String.fromCharCode(evt.keyCode);
if (blobList.visible && conf.chars.indexOf(c) !== -1) {
//Hide blobs if appropriate
if (isMatch(keys.blobs_hide, evt)) {
blobList.hideBlobs();
return;
}

blobList.appendKey(c);
evt.preventDefault();
evt.stopPropagation();
@@ -285,6 +292,7 @@ window.addEventListener("keydown", function(evt) {

//Deselect element
if (onWebPage && isMatch(keys.elem_deselect, evt)) {
blobList.hideBlobs();
active.blur();

//Show/hide/reload blobs

+ 1
- 1
package.json 파일 보기

@@ -1,7 +1,7 @@
{
"title": "Mouseless",
"name": "mouseless",
"version": "0.2.1",
"version": "0.2.2",
"description": "For a mouseless future.",
"main": "index.js",
"author": "Martin Dørum Nygaard",

Loading…
취소
저장