blockly > browserEvents > isTargetInput
Returns true if this event is targeting a text input widget?
Signature:
export declare function isTargetInput(e: Event): boolean;
Parameters
Parameter |
Type |
Description |
e |
Event |
An event. |
Returns:
boolean
True if text input.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `browserEvents.isTargetInput()` function determines if a given event is directed towards a text input element."],["It accepts an event object as input and returns `true` if the event targets a text input, otherwise `false`."],["This function is useful for selectively applying logic based on user interactions with text input fields."]]],[]]