diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java b/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java index e0bbec66b0..958aa6fb5d 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java @@ -663,7 +663,11 @@ class AccessibilityBridge extends AccessibilityNodeProvider implements BasicMess boolean isFocusable() { int scrollableActions = Action.SCROLL_RIGHT.value | Action.SCROLL_LEFT.value | Action.SCROLL_UP.value | Action.SCROLL_DOWN.value; - return flags != 0 || (label != null && !label.isEmpty()) || (actions & ~scrollableActions) != 0; + return (actions & ~scrollableActions) != 0 + || flags != 0 + || (label != null && !label.isEmpty()) + || (value != null && !value.isEmpty()) + || (hint != null && !hint.isEmpty()); } void updateRecursively(float[] ancestorTransform, Set visitedObjects, boolean forceUpdate) { diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm index 834833c36e..b72d57bd8f 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm @@ -159,7 +159,7 @@ bool GeometryComparator(SemanticsObject* a, SemanticsObject* b) { // Note: hit detection will only apply to elements that report // -isAccessibilityElement of YES. The framework will continue scanning the // entire element tree looking for such a hit. - return _node.flags != 0 || !_node.label.empty() || + return _node.flags != 0 || !_node.label.empty() || !_node.value.empty() || !_node.hint.empty() || (_node.actions & ~blink::kScrollableSemanticsActions) != 0; }