MCPcopy Create free account
hub / github.com/GCWing/BitFun / handleWindowRestore

Function handleWindowRestore

src/web-ui/src/app/hooks/useWindowControls.ts:226–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 // Ensure input is usable after restore
225 // Listen for restore
226 const handleWindowRestore = async () => {
227 restoreWindowKeyboardFocus(
228 createWindowKeyboardFocusTarget(getCurrentWindow()),
229 focusSnapshot,
230 100
231 );
232
233 // Run once
234 window.removeEventListener('focus', handleWindowRestore);
235 };
236
237 // Listen for restore
238 window.addEventListener('focus', handleWindowRestore, { once: true });

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected