From 98f409967cb5e7af61ffa346071dbf8dc888e2c6 Mon Sep 17 00:00:00 2001 From: Cade Scroggins Date: Mon, 15 Apr 2019 21:52:01 -0700 Subject: [PATCH] don't show search on ctrl/meta combos --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 23ad8362..a742c6fa 100644 --- a/index.html +++ b/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 @@

${category}

switch ($.key(e)) { case 'alt': case 'ctrl': + case 'ctrl-*': case 'enter': + case 'meta': + case 'meta-*': case 'shift': - case 'super': return; case 'escape': this.hide();