Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > utils > browserEvents > isTargetInput
Zwraca wartość „prawda”, jeśli to zdarzenie jest kierowane na widżet wpisywania tekstu?
Podpis:
export declare function isTargetInput(e: Event): boolean;
Parametry
Parametr |
Typ |
Opis |
e |
Zdarzenie |
Zdarzenie. |
Zwroty:
wartość logiczna
Prawda, jeśli pole tekstowe.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `utils.browserEvents.isTargetInput()` function determines if a given event targets a text input widget. It accepts an `Event` object as a parameter, denoted as `e`. The function's purpose is to evaluate the event target. It returns a boolean value: `true` if the event targets a text input field and `false` otherwise. This function is designed to check whether the target of a browser event is any kind of text input.\n"]]