1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Add checkbox in demo app to turn screen reader on/off

This commit is contained in:
Emil Ernerfeldt
2021-03-24 21:35:29 +01:00
parent cbe6faa83b
commit 70c6f4596a
7 changed files with 32 additions and 9 deletions

View File

@@ -280,7 +280,9 @@ pub fn run(mut app: Box<dyn epi::App>) -> ! {
};
}
screen_reader.speak(&egui_output.events_description());
if ctx.memory().options.screen_reader {
screen_reader.speak(&egui_output.events_description());
}
if current_cursor_icon != egui_output.cursor_icon {
// call only when changed to prevent flickering near frame boundary
// when Windows OS tries to control cursor icon for window resizing