mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
don't show search on ctrl/meta combos
This commit is contained in:
parent
ba94413a29
commit
98f409967c
1 changed files with 8 additions and 2 deletions
10
index.html
10
index.html
|
|
@ -607,6 +607,7 @@
|
|||
|
||||
key: e => {
|
||||
const ctrl = e.ctrlKey;
|
||||
const meta = e.metaKey;
|
||||
const shift = e.shiftKey;
|
||||
|
||||
switch (e.which) {
|
||||
|
|
@ -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),
|
||||
|
|
@ -1203,9 +1207,11 @@
|
|||
switch ($.key(e)) {
|
||||
case 'alt':
|
||||
case 'ctrl':
|
||||
case 'ctrl-*':
|
||||
case 'enter':
|
||||
case 'meta':
|
||||
case 'meta-*':
|
||||
case 'shift':
|
||||
case 'super':
|
||||
return;
|
||||
case 'escape':
|
||||
this.hide();
|
||||
|
|
|
|||
Loading…
Reference in a new issue