1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Update AccessKit

This commit is contained in:
Matt Campbell
2022-11-29 19:47:59 -06:00
parent c47c3a1c03
commit 884001f633
3 changed files with 10 additions and 16 deletions

View File

@@ -61,7 +61,7 @@ winit = { version = "0.27.2", default-features = false }
document-features = { version = "0.2", optional = true }
# feature accesskit
accesskit_winit = { version = "0.6.6", optional = true }
accesskit_winit = { version = "0.7.0", optional = true }
puffin = { version = "0.14", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }

View File

@@ -136,7 +136,7 @@ impl State {
) {
self.accesskit = Some(accesskit_winit::Adapter::new(
window,
Box::new(move || {
move || {
// This function is called when an accessibility client
// (e.g. screen reader) makes its first request. If we got here,
// we know that an accessibility tree is actually wanted.
@@ -146,7 +146,7 @@ impl State {
// real accessibility tree.
egui_ctx.accesskit_activated();
egui::accesskit_placeholder_tree_update()
}),
},
event_loop_proxy,
));
}