Skip to content
pixi-silk
GitHub repository
Function

isTypingTarget

import { isTypingTarget } from 'pixi-silk/ui/keys';
function isTypingTarget(target: EventTarget | null): boolean;

True when a key event comes from an input, textarea, select or content-editable element. The keys then belong to the field and not to the canvas.

Parameters#

ParameterType
targetEventTarget | null

Returns#

boolean