Skip to content

Commit f76272a

Browse files
committed
handleAgentMenuKey: return true to prevent any default keys
1 parent ebcc5bb commit f76272a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/hooks/use-suggestion-menu-handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const useSuggestionMenuHandlers = ({
179179
selectAgentItem(agentSelectedIndex) || selectAgentItem(0)
180180

181181
if (key.name === 'down' && !hasModifier(key)) {
182-
if (agentSelectedIndex === totalMatches - 1) return false
182+
if (agentSelectedIndex === totalMatches - 1) return true
183183
setAgentSelectedIndex((prev) => prev + 1)
184184
return true
185185
}

0 commit comments

Comments
 (0)