Adding inputs to define hotkeys
This commit is contained in:
1 parent
bbb1cf0789
commit
20f274962b
8 files changed
+160
-74
No files matched your search
@@ -12,7 +12,10 @@ export class HotkeysContext {
|
||||
Object.keys(definitions).forEach(command => {
|
||||
const hotkey = definitions[command];
|
||||
this.unregister(command);
|
||||
this.register(command, hotkey);
|
||||
if (hotkey) {
|
||||
this.register(command, hotkey);
|
||||
}
|
||||
|
||||
this.definitions[command] = hotkey;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user