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

Conversation

@chunhtai
Copy link
Contributor

@chunhtai chunhtai commented Mar 17, 2021

Fixes flutter/flutter#77965

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.
  • The reviewer has submitted any presubmit flakes in this PR using the engine presubmit flakes form before re-triggering the failure.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@chunhtai chunhtai marked this pull request as ready for review March 18, 2021 19:27
@flutter-dashboard

This comment has been minimized.

case AccessibilityNodeInfo.MOVEMENT_GRANULARITY_LINE:
case AccessibilityNodeInfo.MOVEMENT_GRANULARITY_PARAGRAPH:
case AccessibilityNodeInfo.MOVEMENT_GRANULARITY_PAGE:
return true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have semantics action for these actions. I feel weird to add them, too, because they aren't really going to be used. voice access only care about the action return true and the semantics node gets updated immediately, which is done by the predictCursorMovement.

If we do want to add them, I feel we should just merge all the cursor movement action into one semantics action that takes in granularity and direction.

@chunhtai chunhtai requested review from goderbauer and xster March 18, 2021 19:34
break;
case AccessibilityNodeInfo.MOVEMENT_GRANULARITY_WORD:
if (forward && node.textSelectionExtent < node.value.length()) {
Pattern pattern = Pattern.compile("[^a-zA-Z0-9](\\b)");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will only work for latin alphabet languages right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@chunhtai chunhtai merged commit 8d73893 into flutter:master Mar 25, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 25, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 25, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 25, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 26, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 26, 2021
@jmagman
Copy link
Member

jmagman commented Mar 26, 2021

I believe this caused a post-submit engine->framework test failure flutter/flutter#79118

@renyou
Copy link
Contributor

renyou commented Mar 29, 2021

This also breaks Google internal compilation.

test/OCL:365108065:BASE:365285587:1616804402433:d72060c2

https://github.com/flutter/engine/pull/25050/files#diff-79014c1877e10573da94a9f34fc11f2a39b8262c4126f8a300f9a47f76d79c8fR1168

Pattern pattern = Pattern.compile("\\p{L}(\\b)");
Matcher result = pattern.matcher(node.value.substring(node.textSelectionExtent));
// we discard the first result because we want to find the "next" word
if (result.find() && result.find()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test failure is from this condition and'ing the same expression twice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lint does not consider the side affect of calling the condition. Not sure what is the correct way of writing this..

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 29, 2021
chunhtai added a commit to chunhtai/engine that referenced this pull request Mar 29, 2021
chunhtai added a commit that referenced this pull request Mar 30, 2021
#25289)

* Reland "Fixes android voice access delete text, redo, and undo actions. (#25050)"

This reverts commit 4c6abc1.

* fix condition
chandarrengoog pushed a commit to chandarrengoog/engine that referenced this pull request Mar 30, 2021
…ter#25050)

* Fixes android voice access delete text, redo, and undo actions

* account for unicode
chandarrengoog pushed a commit to chandarrengoog/engine that referenced this pull request Mar 30, 2021
chandarrengoog pushed a commit to chandarrengoog/engine that referenced this pull request Mar 30, 2021
flutter#25289)

* Reland "Fixes android voice access delete text, redo, and undo actions. (flutter#25050)"

This reverts commit 4c6abc1.

* fix condition
duanqz pushed a commit to duanqz/engine that referenced this pull request Apr 16, 2021
…ter#25050)

* Fixes android voice access delete text, redo, and undo actions

* account for unicode
duanqz pushed a commit to duanqz/engine that referenced this pull request Apr 16, 2021
duanqz pushed a commit to duanqz/engine that referenced this pull request Apr 16, 2021
flutter#25289)

* Reland "Fixes android voice access delete text, redo, and undo actions. (flutter#25050)"

This reverts commit 4c6abc1.

* fix condition
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] voice access delete text does not work.

5 participants