Browse Source

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

master
mort 8 years ago
parent
commit
658cff6193
2 changed files with 9 additions and 1 deletions
  1. 8
    0
      data/onload.js
  2. 1
    1
      package.json

+ 8
- 0
data/onload.js View File

if (isMatch(keys.elem_deselect, evt)) { if (isMatch(keys.elem_deselect, evt)) {
active.blur(); active.blur();
blobList.hideBlobs(); blobList.hideBlobs();
return;
} else { } else {
return; return;
} }
//User is typing a key to a blob //User is typing a key to a blob
var c = String.fromCharCode(evt.keyCode); var c = String.fromCharCode(evt.keyCode);
if (blobList.visible && conf.chars.indexOf(c) !== -1) { if (blobList.visible && conf.chars.indexOf(c) !== -1) {
//Hide blobs if appropriate
if (isMatch(keys.blobs_hide, evt)) {
blobList.hideBlobs();
return;
}

blobList.appendKey(c); blobList.appendKey(c);
evt.preventDefault(); evt.preventDefault();
evt.stopPropagation(); evt.stopPropagation();


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


//Show/hide/reload blobs //Show/hide/reload blobs

+ 1
- 1
package.json View File

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

Loading…
Cancel
Save