History

Format composer menu highlight hook

Cursor Agent committed 4 months ago

Commit e581e801 parent 60796271 file · +7 −1Browse files

Showing the changes to apps (1 of 1 file). Show all

Unified · Split

apps/web/src/components/chat/useComposerMenuHighlight.ts+7−1
@@ -63,7 +63,13 @@ export function useComposerMenuHighlight(input: { · 62 unmodified lines
6363 currentSearchKey: input.searchKey,
6464 highlightedSearchKey: highlightState.searchKey,
6565 });
66− }, [highlightState.itemId, highlightState.searchKey, input.items, input.menuOpen, input.searchKey]);
66+ }, [
67+ highlightState.itemId,
68+ highlightState.searchKey,
69+ input.items,
70+ input.menuOpen,
71+ input.searchKey,
72+ ]);
6773 const activeItemIdRef = useRef(activeItemId);
6874 activeItemIdRef.current = activeItemId;
6975

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t