Change HotkeyDefinition to include label

This commit is contained in:
dannyrb committed 2019-06-05 21:29:50 -04:00
1 parent 347680fdf5
commit 49fe195089
2 files changed
+46 -41

No files matched your search

+3 -10
View File
@@ -40,16 +40,9 @@ const _commandsManager = new CommandsManager(commandsManagerConfig);
const _hotkeysManager = new HotkeysManager(_commandsManager);
// TODO: Should be done in extensions w/ commandsModule
// ADD COMMANDS
// ~~ ADD COMMANDS
appCommands.init(_commandsManager);
// window.config.userPreferences
Object.keys(window.config.hotkeys).forEach(commandName => {
const keys = window.config.hotkeys[commandName];
// HotkeysManager.set();
console.log(`registering hotkey: ${commandName} to binding: ${keys}`);
_hotkeysManager.registerHotkeys(commandName, keys);
});
_hotkeysManager.setHotkeys(window.config.hotkeys, true);
// Force active contexts for now. These should be set in Viewer/ActiveViewer
store.dispatch({
@@ -61,7 +54,7 @@ store.dispatch({
item: 'VIEWER::CORNERSTONE',
});
// ~~~~ END EPP SETUP
// ~~~~ END APP SETUP
setupTools(store);