]> git.wh0rd.org - tt-rss.git/blobdiff - js/tt-rss.js
add hack to support arbitrary key descriptions for hotkeys
[tt-rss.git] / js / tt-rss.js
index 78f7a867d07cd41d14b976538d8ee85531f918b5..13181c4212c5de1bad21b50162d631a4edae2094 100644 (file)
@@ -366,6 +366,17 @@ function init_second_stage() {
                if ('sessionStorage' in window && window['sessionStorage'] !== null)
                        sessionStorage.clear();
 
+               var hotkeys = getInitParam("hotkeys");
+               var tmp = [];
+
+               for (sequence in hotkeys[1]) {
+                       filtered = sequence.replace(/\|.*$/, "");
+                       tmp[filtered] = hotkeys[1][sequence];
+               }
+
+               hotkeys[1] = tmp;
+               setInitParam("hotkeys", hotkeys);
+
                console.log("second stage ok");
 
        } catch (e) {