Allow hotkeys to submit

This commit is contained in:
Bryan Ashby 2015-12-23 19:08:24 -07:00
parent 30a69b2779
commit e8c8975f13
4 changed files with 35 additions and 16 deletions

View file

@ -140,14 +140,6 @@ HorizontalMenuView.prototype.onKeyPress = function(ch, key) {
}
}
if(ch && this.hotKeys) {
var keyIndex = this.hotKeys[this.caseInsensitiveHotKeys ? ch.toLowerCase() : ch];
if(_.isNumber(keyIndex)) {
this.focusedItemIndex = keyIndex;
this.redraw();
}
}
HorizontalMenuView.super_.prototype.onKeyPress.call(this, ch, key);
};