Skip to content

Commit bfd1a0e

Browse files
committed
fix: update comment to clarify focus behavior for named route announcements
1 parent b3d8dfd commit bfd1a0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎engine/src/flutter/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ void PostAccessibilityNotification(UIAccessibilityNotifications notification,
222222
SemanticsObject* next = FindNextFocusableIfNecessary();
223223
SemanticsObject* lastFocused = [objects_ objectForKey:@(last_focused_semantics_object_id_)];
224224
// Only specify the focus item if the new focus is different, avoiding double focuses on the
225-
// same item. See: https://github.com/flutter/flutter/issues/104176. If there is a route
226-
// change, we always refocus.
225+
// same item. See: https://github.com/flutter/flutter/issues/104176. If there is a named
226+
// route announcement, we always refocus.
227227
ios_delegate_->PostAccessibilityNotification(
228228
UIAccessibilityLayoutChangedNotification,
229229
(shouldAnnounceRoute || next != lastFocused) ? next.nativeAccessibility : NULL);

0 commit comments

Comments
 (0)