console: don't insert whitespaces on tab keydown if input is empty
This commit is contained in:
parent
81ef063c9a
commit
18d8f36d60
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ class UiConsole extends UiSidePanel {
|
|||
this.input.value = this.history[this.cursor]
|
||||
event.preventDefault()
|
||||
}
|
||||
} else if (event.keyCode === 9) {
|
||||
} else if (event.keyCode === 9 && this.input.value !== '') {
|
||||
var cur = this.input.selectionStart,
|
||||
val = this.input.value
|
||||
this.input.value = val.slice(0, cur) + ' ' + val.slice(cur)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue