Add TabCompleteBar. Hook up display to whether we are currently tab completing.

This commit is contained in:
Kegan Dougal 2015-12-21 14:11:34 +00:00
parent 26dc3cc553
commit 400b5196bb
4 changed files with 47 additions and 1 deletions

View file

@ -132,6 +132,9 @@ class TabComplete {
// they're resuming typing; reset tab complete state vars.
this.tabStruct.completing = false;
this.tabStruct.index = 0;
if (this.opts.onStateChange) {
this.opts.onStateChange(this.tabStruct.completing);
}
return true;
}
return false;
@ -148,6 +151,9 @@ class TabComplete {
this.tabStruct.index = 0;
// cache starting text
this.tabStruct.original = this.textArea.value;
if (this.opts.onStateChange) {
this.opts.onStateChange(this.tabStruct.completing);
}
}
if (ev.shiftKey) {