MCPcopy Create free account
hub / github.com/arktypeio/arktype / isTyping

Function isTyping

ark/docs/components/shell/SearchDialog.tsx:17–19  ·  view source on GitHub ↗
(target: EventTarget | null)

Source from the content-addressed store, hash-verified

15)
16
17const isTyping = (target: EventTarget | null) =>
18 target instanceof HTMLElement &&
19 (target.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(target.tagName))
20
21const focusableSelector =
22 "input, button:not([tabindex='-1']), a[href]:not([tabindex='-1'])"

Callers 1

onKeyDownFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected