Skip to content
Snippets Groups Projects
Commit c7eea486 authored by Arkerthan's avatar Arkerthan
Browse files

fix hotkeys not added on reload

parent 5eeedaae
No related branches found
No related tags found
No related merge requests found
......@@ -238,6 +238,7 @@ App.UI.Hotkeys = (function() {
// discard obsolete hotkeys
if (actions[saveKey]) {
actions[saveKey].combinations = save[saveKey];
addBinding(saveKey, save[saveKey]);
}
}
}
......
......@@ -22,6 +22,7 @@ App.EventHandlers = function() {
}
function storyReady() {
App.UI.Hotkeys.init();
}
function optionsChanged() {
......
......@@ -4,7 +4,6 @@ Config.saves.onSave = App.EventHandlers.onSave;
$(document).on(':storyready', function() {
App.EventHandlers.storyReady();
App.UI.Hotkeys.init();
});
$(document).one(':passagestart', function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment