invoke later on action on keydown

This commit is contained in:
Val Erastov 2016-10-17 20:49:04 -07:00
parent 6a31f7a4c2
commit b6560e193c

View file

@ -30,7 +30,7 @@ InputManager.prototype.handleKeyPress = function(e) {
for (let action in this.keymap) {
if (jwerty.is(this.keymap[action], e)) {
this.app.actionManager.run(action, e);
setTimeout(() => this.app.actionManager.run(action, e), 0);
break;
}
}