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

Tab only selects labels if the screen_reader option is turned on.

This commit is contained in:
Emil Ernerfeldt
2021-04-25 18:20:10 +02:00
parent c2744a1437
commit 6f01577d5f
2 changed files with 6 additions and 1 deletions

View File

@@ -202,7 +202,11 @@ impl CtxRef {
return response;
}
if sense.focusable {
// We only want to focus labels if the screen reader is on.
let interested_in_focus =
sense.interactive() || sense.focusable && self.memory().options.screen_reader;
if interested_in_focus {
self.memory().interested_in_focus(id);
}