Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0f45fab

Browse files
authored
Rename [ViewFocusDirection.backwards] to [ViewFocusDirection.backward] (#50533)
Rename [ViewFocusDirection.backwards] to [ViewFocusDirection.backward] Relevant Issues are: Design doc link: https://github.com/flutter/website/actions/runs/7560898849/job/20588395967 Design doc: flutter/flutter#141711 Focus in web multiview: flutter/flutter#137443 Platform dispatcher changes: #49841 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent a119a0d commit 0f45fab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ui/platform_dispatcher.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class PlatformDispatcher {
319319
///
320320
/// Typically, receivers of this event respond by moving the focus to the first
321321
/// focusable widget inside the [FlutterView] with ID 2. If a view receives
322-
/// focus in the backwards direction (could be the result of pressing shift + tab),
322+
/// focus in the backward direction (could be the result of pressing shift + tab),
323323
/// typically the last focusable widget inside that view is focused.
324324
///
325325
/// The platform may remove focus from a [FlutterView]. For example, on the web,
@@ -2690,8 +2690,8 @@ enum ViewFocusDirection {
26902690
/// This is typically result of the user pressing tab.
26912691
forward,
26922692

2693-
/// Indicates the focus transition was performed in a backwards direction.
2693+
/// Indicates the focus transition was performed in a backward direction.
26942694
///
26952695
/// This is typically result of the user pressing shift + tab.
2696-
backwards,
2696+
backward,
26972697
}

lib/web_ui/lib/platform_dispatcher.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,5 +587,5 @@ enum ViewFocusState {
587587
enum ViewFocusDirection {
588588
undefined,
589589
forward,
590-
backwards,
590+
backward,
591591
}

0 commit comments

Comments
 (0)