From 5f6c3e5afc25c51a753aade47f51d2bf444fe09c Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 4 Jul 2017 17:49:50 +0100 Subject: [PATCH] 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 --- src/components/views/rooms/Autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/Autocomplete.js b/src/components/views/rooms/Autocomplete.js index dd6d9d1ae9..761f4e488a 100644 --- a/src/components/views/rooms/Autocomplete.js +++ b/src/components/views/rooms/Autocomplete.js @@ -68,7 +68,7 @@ export default class Autocomplete extends React.Component { let autocompleteDelay = UserSettingsStore.getLocalSetting('autocompleteDelay', 200); // 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; }