Browse Source

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

master
mort 6 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

@@ -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 View File

@@ -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…
Cancel
Save