Skip to content

Conversation

@chunhtai
Copy link
Contributor

… focus

This matches native behavior

fixes #77835

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, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

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

@flutter-dashboard flutter-dashboard bot added f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Mar 22, 2021
@google-cla google-cla bot added the cla: yes label Mar 22, 2021
@chunhtai chunhtai requested a review from justinmc March 22, 2021 21:14
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Are you sure this doesn't happen on Windows or Linux as well?

Also there are some test failures about the semantics tree.

case TargetPlatform.macOS:
textSelectionControls ??= cupertinoDesktopTextSelectionControls;
handleDidGainAccessibilityFocus = () {
// macOS automatically activated the TextField when it receives
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: "activated" => "activates" here and below.

@chunhtai
Copy link
Contributor Author

LGTM 👍

Are you sure this doesn't happen on Windows or Linux as well?

Also there are some test failures about the semantics tree.

I am not sure since I haven't tested on those devices, but we can add that fairly easy. cc @cbracken who is working on windows accessibility

@fluttergithubbot fluttergithubbot merged commit 3c73185 into flutter:master Mar 25, 2021
cbracken added a commit to cbracken/flutter that referenced this pull request Dec 9, 2021
On Windows, like on macOS, when the accessibility focus moves onto a
text field, the text field should automatically take keyboard focus for
typing.

Related macOS patch: flutter#78815

Issue: flutter#77838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[macOS] does not activate textfield when it receives accessibility focus

3 participants