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 pregmodfan/fc-pregmod!7312
parents 5eeedaae c7eea486
No related branches found
No related tags found
No related merge requests found
...@@ -238,6 +238,7 @@ App.UI.Hotkeys = (function() { ...@@ -238,6 +238,7 @@ App.UI.Hotkeys = (function() {
// discard obsolete hotkeys // discard obsolete hotkeys
if (actions[saveKey]) { if (actions[saveKey]) {
actions[saveKey].combinations = save[saveKey]; actions[saveKey].combinations = save[saveKey];
addBinding(saveKey, save[saveKey]);
} }
} }
} }
......
...@@ -22,6 +22,7 @@ App.EventHandlers = function() { ...@@ -22,6 +22,7 @@ App.EventHandlers = function() {
} }
function storyReady() { function storyReady() {
App.UI.Hotkeys.init();
} }
function optionsChanged() { function optionsChanged() {
......
...@@ -4,7 +4,6 @@ Config.saves.onSave = App.EventHandlers.onSave; ...@@ -4,7 +4,6 @@ Config.saves.onSave = App.EventHandlers.onSave;
$(document).on(':storyready', function() { $(document).on(':storyready', function() {
App.EventHandlers.storyReady(); App.EventHandlers.storyReady();
App.UI.Hotkeys.init();
}); });
$(document).one(':passagestart', function() { $(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