summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/InputPrompt.tsx
diff options
context:
space:
mode:
authorLee Won Jun <[email protected]>2025-08-10 07:28:28 +0900
committerGitHub <[email protected]>2025-08-09 22:28:28 +0000
commitc632ec8b03ac5b459da9ccb041b9fca19252f69b (patch)
treed563f355d140f0d3cfd4b12648712866b365ab27 /packages/cli/src/ui/components/InputPrompt.tsx
parent0dea7233b65b480466e4da62db9127205b57a6d0 (diff)
[#5356] Minor fix: Remove duplicate binding and add complete navigation command (#5884)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
-rw-r--r--packages/cli/src/ui/components/InputPrompt.tsx10
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;
}