From: Andrew Dolgov Date: Fri, 20 Jun 2008 04:18:00 +0000 (+0100) Subject: consider cmd key as prefix to block cmd-q from asking to catchup anything X-Git-Tag: 1.2.24~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=344702beb4fd21ac221f857aaacbbb349d88ce31;p=tt-rss.git consider cmd key as prefix to block cmd-q from asking to catchup anything --- diff --git a/tt-rss.js b/tt-rss.js index d917b6dc..d5abfcdd 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -1001,10 +1001,12 @@ function hotkey_handler(e) { if (keycode == 16) return; // ignore lone shift - if ((keycode == 70 || keycode == 67 || keycode == 71) && !hotkey_prefix) { + if ((keycode == 70 || keycode == 67 || keycode == 71 || + keycode == 224 || keycode == 91) && !hotkey_prefix) { + hotkey_prefix = keycode; debug("KP: PREFIX=" + keycode + " CHAR=" + keychar); - return; + return true; } if (Element.visible("hotkey_help_overlay")) {