Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zhongsp/TypeScript
/ hasFocus
Function
hasFocus
docs/searcher.js:57–59 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
55
SELECT_KEYCODE = 13;
56
57
function
hasFocus() {
58
return
searchbar === document.activeElement;
59
}
60
61
function
removeChildren(elem) {
62
while
(elem.firstChild) {
Callers
1
globalKeyHandler
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected