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

Rename [ViewFocusDirection.backwards] to [ViewFocusDirection.backward] #50533

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/ui/platform_dispatcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class PlatformDispatcher {
///
/// Typically, receivers of this event respond by moving the focus to the first
/// focusable widget inside the [FlutterView] with ID 2. If a view receives
/// focus in the backwards direction (could be the result of pressing shift + tab),
/// focus in the backward direction (could be the result of pressing shift + tab),
/// typically the last focusable widget inside that view is focused.
///
/// The platform may remove focus from a [FlutterView]. For example, on the web,
Expand Down Expand Up @@ -2690,8 +2690,8 @@ enum ViewFocusDirection {
/// This is typically result of the user pressing tab.
forward,

/// Indicates the focus transition was performed in a backwards direction.
/// Indicates the focus transition was performed in a backward direction.
///
/// This is typically result of the user pressing shift + tab.
backwards,
backward,
}
2 changes: 1 addition & 1 deletion lib/web_ui/lib/platform_dispatcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -587,5 +587,5 @@ enum ViewFocusState {
enum ViewFocusDirection {
undefined,
forward,
backwards,
backward,
}