add hack to support arbitrary key descriptions for hotkeys

This commit is contained in:
Andrew Dolgov
2013-01-22 12:52:52 +04:00
parent 1b03e1deb6
commit e5e2cf3b88
3 changed files with 21 additions and 4 deletions
+11
View 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) {