[#5356] Minor fix: Remove duplicate binding and add complete navigation command (#5884)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Lee Won Jun
2025-08-10 07:28:28 +09:00
committed by GitHub
parent 0dea7233b6
commit c632ec8b03
3 changed files with 34 additions and 42 deletions

View File

@@ -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;
}