Resolves #415 -- prevent tab from losing focus

This commit is contained in:
Peter Cottle 2017-03-12 18:59:42 -07:00
parent 608b92fd8e
commit a5352218a1

View file

@ -50,6 +50,12 @@ var CommandPromptView = Backbone.View.extend({
}, },
onKeyDown: function(e) { onKeyDown: function(e) {
// If its a tab, prevent losing focus
if (e.keyCode === 9) {
e.preventDefault();
// Maybe one day do tab completion or something? :O
return;
}
var el = e.target; var el = e.target;
this.updatePrompt(el); this.updatePrompt(el);
}, },