Fixing issues with hotkeys and presets

This commit is contained in:
Bruno Alves de Faria committed 2017-09-19 09:38:05 -03:00
1 parent 29a8a3db8f
commit e93c18c28f
2 files changed
+11 -13

No files matched your search

@@ -80,7 +80,8 @@ export class HotkeysManager {
return new Promise((resolve, reject) => {
const context = this.getContext(contextName);
if (!context) return;
this.retrieve(contextName).then(definitions => {
this.retrieve(contextName).then(defs => {
const definitions = defs || this.defaults[contextName];
if (!definitions) {
this.changeObserver.changed();
return reject();