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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user