Skip to content

Commit

Permalink
fix(consumer): Allow editable spin buttons (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcampbell committed Nov 24, 2022
1 parent 176ec58 commit 65a7aa0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions consumer/src/text.rs
Expand Up @@ -736,11 +736,10 @@ impl<'a> Node<'a> {
}

pub fn supports_text_ranges(&self) -> bool {
let role = self.role();
if role != Role::StaticText && role != Role::TextField && role != Role::Document {
return false;
}
self.inline_text_boxes().next().is_some()
matches!(
self.role(),
Role::StaticText | Role::TextField | Role::Document | Role::SpinButton
) && self.inline_text_boxes().next().is_some()
}

fn document_start(&self) -> InnerPosition<'a> {
Expand Down

0 comments on commit 65a7aa0

Please sign in to comment.