MCPcopy
hub / github.com/codeaashu/claude-code / handler

Function handler

web/components/settings/KeyboardSettings.tsx:60–70  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

58 useEffect(() => {
59 if (!listening) return;
60 function handler(e: KeyboardEvent) {
61 if (e.key === "Escape") {
62 setListening(false);
63 return;
64 }
65 const combo = captureKeyCombo(e);
66 if (combo) {
67 onRebind(combo);
68 setListening(false);
69 }
70 }
71 window.addEventListener("keydown", handler);
72 return () => window.removeEventListener("keydown", handler);
73 }, [listening, onRebind]);

Callers

nothing calls this directly

Calls 1

captureKeyComboFunction · 0.85

Tested by

no test coverage detected