mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Update AccessKit
This commit is contained in:
@@ -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"] }
|
||||
|
||||
@@ -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,
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user