MCPcopy Index your code
hub / github.com/codeaashu/claude-code / handleKeyDown

Function handleKeyDown

web/components/file-viewer/SearchBar.tsx:154–162  ·  view source on GitHub ↗
(e: React.KeyboardEvent)

Source from the content-addressed store, hash-verified

152 };
153
154 const handleKeyDown = (e: React.KeyboardEvent) => {
155 if (e.key === "Enter") {
156 e.shiftKey ? goPrev() : goNext();
157 }
158 if (e.key === "Escape") {
159 clearHighlights();
160 onClose();
161 }
162 };
163
164 return (
165 <div className="flex items-center gap-1 px-2 py-1.5 border-b border-surface-800 bg-surface-900/90 backdrop-blur-sm">

Callers

nothing calls this directly

Calls 3

goPrevFunction · 0.85
goNextFunction · 0.85
clearHighlightsFunction · 0.85

Tested by

no test coverage detected