Skip to content

Commit

Permalink
Update for AccessKit API-breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcampbell authored and DataTriny committed Jul 17, 2024
1 parent 2235204 commit d75121a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/egui-winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ winit = { workspace = true, default-features = false }
#! ### Optional dependencies

# feature accesskit
accesskit_winit = { version = "0.21.0", optional = true }
accesskit_winit = { path = "../../../accesskit/platforms/winit", optional = true }

## Enable this when generating docs.
document-features = { workspace = true, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/egui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ahash.workspace = true
nohash-hasher.workspace = true

#! ### Optional dependencies
accesskit = { version = "0.15", optional = true }
accesskit = { path = "../../../accesskit/common", optional = true }

backtrace = { workspace = true, optional = true }

Expand Down
2 changes: 1 addition & 1 deletion crates/egui/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ impl Response {

self.fill_accesskit_node_common(builder);
builder.set_role(match info.typ {
WidgetType::Label => Role::StaticText,
WidgetType::Label => Role::Label,
WidgetType::Link => Role::Link,
WidgetType::TextEdit => Role::TextInput,
WidgetType::Button | WidgetType::ImageButton | WidgetType::CollapsingHeader => {
Expand Down
2 changes: 1 addition & 1 deletion crates/egui/src/text_selection/label_text_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn paint_selection(
ui.ctx(),
_response.id,
cursor_range,
accesskit::Role::StaticText,
accesskit::Role::Label,
galley_pos,
galley,
);
Expand Down

0 comments on commit d75121a

Please sign in to comment.