Add TabCompleteBar. Hook up display to whether we are currently tab completing.
This commit is contained in:
parent
26dc3cc553
commit
400b5196bb
4 changed files with 47 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue