MCPcopy
hub / github.com/philc/vimium / isWindowFocusable

Function isWindowFocusable

content_scripts/vimium_frontend.js:42–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41// True if this window should be focusable by various Vim commands (e.g. "nextFrame").
42function isWindowFocusable() {
43 // Avoid focusing tiny frames. See #1317.
44 return !DomUtils.windowIsTooSmall() && (document.body?.tagName.toLowerCase() != "frameset");
45}
46
47// If an input grabs the focus before the user has interacted with the page, then grab it back (if
48// the grabBackFocus option is set).

Callers 2

focusThisFrameFunction · 0.85
getFocusStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected