]> git.wh0rd.org - tt-rss.git/blobdiff - js/tt-rss.js
tweak hotkey map notation to allow stuff like shift-arrows
[tt-rss.git] / js / tt-rss.js
index badfe8707440a1d423017f1bb1d230cede90ed38..5ada64d316309c1b2affc6bcf95588841cf56a72 100644 (file)
@@ -556,7 +556,7 @@ function hotkey_handler(e) {
                if (keycode == 16) return; // ignore lone shift
                if (keycode == 17) return; // ignore lone ctrl
 
-               if (!shift_key) keychar = keychar.toLowerCase();
+               keychar = keychar.toLowerCase();
 
                var hotkeys = getInitParam("hotkeys");
 
@@ -577,7 +577,11 @@ function hotkey_handler(e) {
                Element.hide(cmdline);
 
                var hotkey = keychar.search(/[a-zA-Z0-9]/) != -1 ? keychar : "(" + keycode + ")";
+
+               // ensure ^*char notation
+               if (shift_key) hotkey = "*" + hotkey;
                if (ctrl_key) hotkey = "^" + hotkey;
+
                hotkey = hotkey_prefix ? hotkey_prefix + " " + hotkey : hotkey;
                hotkey_prefix = false;