MCPcopy Create free account
hub / github.com/dailydotdev/apps / isEditing

Function isEditing

packages/shared/src/hooks/utils/useKeyboardFit.ts:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const keyboardThreshold = 120;
7
8const isEditing = (): boolean =>
9 !!document.activeElement?.matches?.(
10 'input, textarea, [contenteditable="true"]',
11 );
12
13// Phone browsers don't resize the page for the keyboard: they scroll it
14// under the keyboard instead, which takes the shell's top block off screen

Callers 1

useKeyboardFitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected