You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Add TabCompleteBar. Hook up display to whether we are currently tab completing.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user