mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 01:10:04 +02:00
Firefox prompt huge fix, Issue #59
This commit is contained in:
parent
a7c2b8936c
commit
d17d131d24
7 changed files with 18 additions and 10 deletions
|
@ -74,7 +74,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
onKeyDown: function(e) {
|
||||
var el = e.srcElement;
|
||||
var el = e.srcElement || e.currentTarget;
|
||||
this.updatePrompt(el);
|
||||
},
|
||||
|
||||
|
@ -131,7 +131,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
|
||||
cursorUpdate: function(commandLength, selectionStart, selectionEnd) {
|
||||
if (selectionStart === undefined || selectionEnd === undefined) {
|
||||
selectionStart = commandLength - 1;
|
||||
selectionStart = Math.max(commandLength - 1, 0);
|
||||
selectionEnd = commandLength;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue