MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / handler

Function handler

src/components/FileBrowser.tsx:145–151  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

143 // Keyboard shortcut: Ctrl/Cmd+S to save
144 useEffect(() => {
145 const handler = (e: KeyboardEvent) => {
146 if ((e.ctrlKey || e.metaKey) && e.key === "s") {
147 e.preventDefault();
148 handleSave();
149 }
150 if (e.key === "Escape") onClose();
151 };
152 window.addEventListener("keydown", handler);
153 return () => window.removeEventListener("keydown", handler);
154 }, [content]);

Callers

nothing calls this directly

Calls 1

handleSaveFunction · 0.70

Tested by

no test coverage detected