Skip to content

Commit

Permalink
Add command tab completion to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
chvancooten committed Mar 4, 2023
1 parent c393878 commit 05141b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/components/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function Console({ allowInput, consoleData, disabled, guid, inputFunction }: Con
value={enteredCommand}
onKeyDown={getHotkeyHandler([
['Enter', handleSubmit],
['Tab', () => autocompleteOptions.length > 0 && setEnteredCommand(autocompleteOptions[0])],
['ArrowUp', () => handleHistory(-1)],
['ArrowDown', () => handleHistory(1)],
])}
Expand Down

0 comments on commit 05141b5

Please sign in to comment.