mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
Resolves #415 -- prevent tab from losing focus
This commit is contained in:
parent
608b92fd8e
commit
a5352218a1
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue