diff --git a/src/client/ui/ui-console.js b/src/client/ui/ui-console.js index ad27506f..9fac72d2 100644 --- a/src/client/ui/ui-console.js +++ b/src/client/ui/ui-console.js @@ -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)