Input · function

isTypingTarget

INPUT covers buttons and checkboxes too, which do not take text — but a Space on a focused button is the browser's own "press it", so leaving those alone is right for the same reason.

Explained in Moving things.

function isTypingTarget(target: EventTarget | null): boolean
import { isTypingTarget } from '@driftengine/core';

Parameters

ParameterTypeDescription
targetEventTarget | null