1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10: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

@@ -219,7 +219,9 @@ impl AppRunner {
let egui_ctx = &self.web_backend.ctx;
self.app.update(egui_ctx, &mut frame);
let (egui_output, clipped_meshes) = self.web_backend.end_frame()?;
self.screen_reader.speak(&egui_output.events_description());
if self.web_backend.ctx.memory().options.screen_reader {
self.screen_reader.speak(&egui_output.events_description());
}
handle_output(&egui_output);
{