MCPcopy Create free account
hub / github.com/msgbyte/tailchat / handler

Function handler

client/web/src/components/FullModal/index.tsx:27–31  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

25
26 useEffect(() => {
27 const handler = (e: KeyboardEvent) => {
28 if (e.code === 'Escape') {
29 handleClose();
30 }
31 };
32 window.addEventListener('keyup', handler);
33
34 return () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected