When hitting "tab" use an autocompleteDelay of 0
So that there's no delay when tab completing. Fixes https://github.com/vector-im/riot-web/issues/4497
This commit is contained in:
parent
0af77e8913
commit
5f6c3e5afc
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export default class Autocomplete extends React.Component {
|
||||||
let autocompleteDelay = UserSettingsStore.getLocalSetting('autocompleteDelay', 200);
|
let autocompleteDelay = UserSettingsStore.getLocalSetting('autocompleteDelay', 200);
|
||||||
|
|
||||||
// Don't debounce if we are already showing completions
|
// Don't debounce if we are already showing completions
|
||||||
if (this.state.completions.length > 0) {
|
if (this.state.completions.length > 0 || this.state.forceComplete) {
|
||||||
autocompleteDelay = 0;
|
autocompleteDelay = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue