Skip to content
Snippets Groups Projects
Commit d011df7e authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fix' into 'pregmod-master'

fix hotkeys not added on reload

Closes #1999

See merge request !7312
parents 5eeedaae c7eea486
No related branches found
No related tags found
1 merge request!7312fix hotkeys not added on reload
......@@ -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