diff --git a/source/content-scripts/features/autocomplete.tsx b/source/content-scripts/features/autocomplete.tsx index 03c434b..f63c1f2 100644 --- a/source/content-scripts/features/autocomplete.tsx +++ b/source/content-scripts/features/autocomplete.tsx @@ -33,6 +33,12 @@ type State = { /** The position where the group autocompletion list should be shown. */ groupsPosition: Offset | undefined; + /** The currently highlighted match index of the active list. */ + highlightedIndex: number; + + /** Whether the user is currently typing in an autocomplete section. */ + typingInAutocomplete: boolean; + /** All the usernames without leading @-symbols. */ usernames: Set; @@ -46,6 +52,27 @@ type State = { usernamesPosition: Offset | undefined; }; +/** All the properties we need to handle `