MCPcopy Create free account
hub / github.com/AccessKit/accesskit / is_text_input

Method is_text_input

consumer/src/node.rs:545–564  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

543 }
544
545 pub fn is_text_input(&self) -> bool {
546 matches!(
547 self.role(),
548 Role::TextInput
549 | Role::MultilineTextInput
550 | Role::SearchInput
551 | Role::DateInput
552 | Role::DateTimeInput
553 | Role::WeekInput
554 | Role::MonthInput
555 | Role::TimeInput
556 | Role::EmailInput
557 | Role::NumberInput
558 | Role::PasswordInput
559 | Role::PhoneNumberInput
560 | Role::UrlInput
561 | Role::EditableComboBox
562 | Role::SpinButton
563 )
564 }
565
566 pub fn is_multiline(&self) -> bool {
567 self.role() == Role::MultilineTextInput

Callers 6

supports_text_rangesMethod · 0.80
is_invocableMethod · 0.80
placeholderMethod · 0.80
stateMethod · 0.80
is_editableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected