Adding inputs to define hotkeys

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
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;
});
}