diff options
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.tsx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index 7eb1905d..f53d255f 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -373,17 +373,11 @@ export const InputPrompt: React.FC<InputPromptProps> = ({ if (completion.showSuggestions) { if (completion.suggestions.length > 1) { - if ( - keyMatchers[Command.NAVIGATION_UP](key) || - keyMatchers[Command.HISTORY_UP](key) - ) { + if (keyMatchers[Command.COMPLETION_UP](key)) { completion.navigateUp(); return; } - if ( - keyMatchers[Command.NAVIGATION_DOWN](key) || - keyMatchers[Command.HISTORY_DOWN](key) - ) { + if (keyMatchers[Command.COMPLETION_DOWN](key)) { completion.navigateDown(); return; } |
