Skip to content

Conversation

@LongCatIsLooong
Copy link
Contributor

Some Android keyboards ignore showSoftInput if they're immediately told to
restart after the showSoftInput.

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. You must list at least one issue.

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

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 this 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.

plugin when switching input clients

- Fixes flutter#68571

Some Android keyboards ignore `showSoftInput` if they're immediately told to
restart after the `showSoftInput`.

- Related: flutter#41990
@flutter-dashboard flutter-dashboard bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels Nov 3, 2021
@google-cla google-cla bot added the cla: yes label Nov 3, 2021
@LongCatIsLooong
Copy link
Contributor Author

@GaryQian it seems #41990 specifically says "show" should come before "setEditingState", but in a comment from the internal bug it seems the order is actually irrelevant? Also, is there a list of Samsung keyboard versions that had the selection problems that I need to test on?

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

On the web, we had issues with the order of messages a while ago. Since then, we changed our implementation to handle any order. So this should be good to go for web.

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 👍

This order seems reasonable to me, but I'm interested if Gary has any input.

Copy link
Contributor

@GaryQian GaryQian left a comment

Choose a reason for hiding this comment

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

LGTM.

This ordering change should be safe as later on, I was able to fix the root cause for the samusng issues and it was not related to this ordering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The keyboard will disappear when switch focus on two TextField when secure keyboard is enabled

5 participants