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

Function handleKeyDown

src/ui-solid-inspector/index.tsx:203–208  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

201 createEffect(() => {
202 if (!isUndefined(confirming())) {
203 const handleKeyDown = (event: KeyboardEvent) => {
204 if (!isUndefined(confirming()) && event.key == 'Escape') {
205 event.preventDefault();
206 handleDone();
207 }
208 };
209 document.addEventListener('keydown', handleKeyDown);
210 onCleanup(() => document.removeEventListener('keydown', handleKeyDown));
211 }

Callers

nothing calls this directly

Calls 3

isUndefinedFunction · 0.90
handleDoneFunction · 0.70
handleClickFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…