Function: isTextEntryTarget()
function isTextEntryTarget(target: unknown): boolean;
Defined in: xrblocks-uiextensions/src/desktop-controls.ts:50
True when a key event is being typed into a DOM text field - <input>,
<textarea>, <select> or anything contenteditable.
Overlays share the page with the scene (the devtools playground puts a source editor over it), and their keystrokes are theirs alone: WASD must not walk the camera mid-word, and Space must reach the field instead of being swallowed as a jump.
A structural check rather than instanceof HTMLElement, so it stays
unit-testable with no DOM.
Parameters
| Parameter | Type |
|---|---|
target | unknown |
Returns
boolean