diff options
author | Andrew Dolgov <[email protected]> | 2008-05-17 17:59:50 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-17 17:59:50 +0100 |
commit | c177f2e648ea659d194c1a646bbec75b07bde97d (patch) | |
tree | 4529cf5240bb566ba66b05c51759e5953939a3b6 /tt-rss.js | |
parent | a6bc72dfcc457d4a6feab8edf537095a3c5efd14 (diff) |
hotkeys: parse keycode into keychar
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -931,6 +931,8 @@ function hotkey_handler(e) { keycode = e.which; } + keychar = String.fromCharCode(keycode); + if (keycode == 27) { // escape if (Element.visible("hotkey_help_overlay")) { Element.hide("hotkey_help_overlay"); @@ -982,7 +984,7 @@ function hotkey_handler(e) { return; } - if (keycode == 191) { // / + if (keycode == 191 || (is_opera() && keycode == 47)) { // / return displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat()); } @@ -1348,10 +1350,9 @@ function hotkey_handler(e) { } */ if (hotkey_prefix) { - debug("KP: PREFIX=" + hotkey_prefix + " CODE=" + keycode); - + debug("KP: PREFIX=" + hotkey_prefix + " CODE=" + keycode + " CHAR=" + keychar); } else { - debug("KP: CODE=" + keycode); + debug("KP: CODE=" + keycode + " CHAR=" + keychar); } |