You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (get_focus_mode_with_override() == FOCUS_ACCESSIBILITY) {
2353
+
if (!get_tree()->is_accessibility_enabled()) {
2354
+
WARN_PRINT("This control can grab focus only when screen reader is active. Use set_focus_mode() and set_focus_behavior_recursive() to allow a control to get focus. Use get_tree().is_accessibility_enabled() to check screen-reader state.");
2355
+
return;
2356
+
}
2357
+
}
2358
+
2352
2359
if (get_focus_mode_with_override() == FOCUS_NONE) {
2353
2360
WARN_PRINT("This control can't grab focus. Use set_focus_mode() and set_focus_behavior_recursive() to allow a control to get focus.");
0 commit comments