mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:25:54 +00:00
add hack to support arbitrary key descriptions for hotkeys
This commit is contained in:
11
js/tt-rss.js
11
js/tt-rss.js
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user