MCPcopy
hub / github.com/vercel/hyper / updateFocusTime

Function updateFocusTime

app/ui/window.ts:317–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315 // which one of the existing window is the last focused.
316 // Works nicely even if a window is closed and removed.
317 const updateFocusTime = () => {
318 window.focusTime = process.uptime();
319 };
320
321 window.on('focus', () => {
322 updateFocusTime();

Callers 1

newWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected