-
Notifications
You must be signed in to change notification settings - Fork 6k
Add word movement granularities to android #5902
Conversation
Based on offline discussion, we will only include word for now since we don't have a way to support line/page/paragraph yet. |
You'd have to use ICU data to correctly determine word/line/etc breaks: http://icu-project.org/apiref/icu4c/classicu_1_1BreakIterator.html This is not fully exposed to dart land. If you do, be aware of this bug: flutter/flutter#19584 |
@goderbauer do you want to wait for that issue to be resolved before we add this to the framework? |
@@ -480,7 +490,17 @@ boolean performCursorMoveAction( | |||
return true; | |||
} | |||
} | |||
// TODO(goderbauer): support other granularities. | |||
case AccessibilityNodeInfo.MOVEMENT_GRANULARITY_WORD: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the case statements need to end with break
to avoid fall-through?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
No, I wouldn't wait. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
91ff524 Roll src/third_party/skia 74c6ed3d1f17..1935aa3d27cd (11 commits) (flutter/engine#5911) d06e9e8 Deprecate -[FlutterDartProject initFromDefaultSourceForConfiguration] (flutter/engine#18886) (flutter#5858) 3e6b681 Roll src/third_party/skia 0bf5408286ea..74c6ed3d1f17 (1 commits) (flutter/engine#5910) 5b09e14 Roll src/third_party/skia 946a162a5239..0bf5408286ea (1 commits) (flutter/engine#5909) 236d633 Add word movement granularities to android (flutter/engine#5902) 5ae8240 Roll src/third_party/skia f7dcd76c552a..946a162a5239 (3 commits) (flutter/engine#5908) 0c8fda2 Remove the "VSYNC" trace event on Fuchsia (flutter/engine#5907) 430ca29 Roll src/third_party/skia 62501c12c83e..f7dcd76c552a (5 commits) (flutter/engine#5906) 10effc7 Replace travis with cirrus (flutter/engine#5899) cd85329 Use container and GKE to accelerate build (flutter/engine#5897) 659e49e Add docker container generation scripts (flutter/engine#5898) 9336082 Roll src/third_party/skia c06b8a4e0ca3..62501c12c83e (11 commits) (flutter/engine#5905) 46b7793 Clear the EGL context only if our context is currently active (flutter/engine#5895) 2f4a022 Return proper JSON-RPC error responses from service protocol failures (flutter/engine#5889) d34eb1d Roll src/third_party/skia 227424b57d28..c06b8a4e0ca3 (22 commits) (flutter/engine#5904)
This brings the Dart and C++ semantics flag enums back in sync. In flutter#5902, the ability to move the cursor forward and backward one word were added to dart:ui, and to the embedders, but not to the SemanticsFlags enum on the C++ side. The resulting behaviour is unspecified by the standard (sec. 7.2/10).
This brings the Dart and C++ semantics flag enums back in sync. In flutter#5902, the ability to move the cursor forward and backward one word were added to dart:ui, and to the embedders, but not to the SemanticsFlags enum on the C++ side.
This brings the Dart and C++ semantics flag enums back in sync. In flutter#5902, the ability to move the cursor forward and backward one word were added to dart:ui, and to the Android embedder, but not to the SemanticsAction enum on the C++ side.
This brings the Dart and C++ semantics flag enums back in sync. In #5902, the ability to move the cursor forward and backward one word were added to dart:ui, and to the Android embedder, but not to the SemanticsAction enum on the C++ side.
I image we can support word and line by looking for whitespace and newlines .... right?