Skip to content

Commit

Permalink
don't show search on ctrl/meta combos
Browse files Browse the repository at this point in the history
  • Loading branch information
Cade Scroggins committed Apr 16, 2019
1 parent ba94413 commit 98f4099
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@

key: e => {
const ctrl = e.ctrlKey;
const meta = e.metaKey;
const shift = e.shiftKey;

switch (e.which) {
Expand Down Expand Up @@ -637,8 +638,11 @@
case 91:
case 93:
case 224:
return 'super';
return 'meta';
}

if (ctrl) return 'ctrl-*';
if (meta) return 'meta-*';
},

pad: v => ('0' + v.toString()).slice(-2),
Expand Down Expand Up @@ -1203,9 +1207,11 @@ <h2 class="category-name">${category}</h2>
switch ($.key(e)) {
case 'alt':
case 'ctrl':
case 'ctrl-*':
case 'enter':
case 'meta':
case 'meta-*':
case 'shift':
case 'super':
return;
case 'escape':
this.hide();
Expand Down

0 comments on commit 98f4099

Please sign in to comment.