Skip to content

Commit

Permalink
Fixes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Nov 14, 2024
1 parent bb3a646 commit 7bde0d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/egui/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,9 @@ impl Response {
if self.sense.focusable {
builder.add_action(accesskit::Action::Focus);
}
if self.sense.click {
builder.add_action(accesskit::Action::Click);
}
}

#[cfg(feature = "accesskit")]
Expand Down Expand Up @@ -1036,7 +1039,11 @@ impl Response {
builder.set_disabled();
}
if let Some(label) = info.label {
builder.set_label(label);
if matches!(builder.role(), Role::Label) {
builder.set_value(label);
} else {
builder.set_label(label);
}
}
if let Some(value) = info.current_text_value {
builder.set_value(value);
Expand Down

0 comments on commit 7bde0d8

Please sign in to comment.