MCPcopy Index your code
hub / github.com/tinyplex/tinybase / handleKeyDown

Function handleKeyDown

src/ui-react-inspector/actions/common.tsx:50–55  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

48 useEffect(() => {
49 if (!isUndefined(confirming)) {
50 const handleKeyDown = (e: KeyboardEvent) => {
51 if (!isUndefined(confirming) && e.key === 'Escape') {
52 e.preventDefault();
53 handleDone();
54 }
55 };
56 document.addEventListener('keydown', handleKeyDown);
57 return () => document.removeEventListener('keydown', handleKeyDown);
58 }

Callers

nothing calls this directly

Calls 2

isUndefinedFunction · 0.90
handleDoneFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…