]> git.wh0rd.org Git - tt-rss.git/commitdiff
hotkeys: parse keycode into keychar
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 16:59:50 +0000 (17:59 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 16:59:50 +0000 (17:59 +0100)
tt-rss.js

index bcb8a99c29a116255251c34307046b5d7917cf23..aea274095d897483f4cad62fad0383febe9bd377 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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);
                }