-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Hook up soft keyboard "next" and "previous" buttons so that they move the focus by default #63592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hook up soft keyboard "next" and "previous" buttons so that they move the focus by default #63592
Conversation
7ca9730 to
ec2fc89
Compare
HansMuller
left a comment
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.
There are many more TextInputActions that have focus implications. Shouldn't we be checking all of them?
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.
Previous node has ... 'previous' button
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.
Thanks, fixed.
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.
In theory, you could do all of this checking in just one slightly more complicated version of this test.
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.
Well, sure, but doesn't that violate the principle of "one behavior => one test"?
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.
OK, I modified the tests to test all of the behaviors in separate tests (so they fail separately), but using a new TestVariant subclass so that I don't duplicate code when doing so. Let me know what you think.
9d5c366 to
48d33fa
Compare
HansMuller
left a comment
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.
The test updates LGTM
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.
NICE
justinmc
left a comment
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
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.
I feel like this is an analyzer error if it's not indented, but if I'm wrong then no worries.
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.
No, it won't fail the analyzer, but it does need to be indented for readabililty. Done.
48d33fa to
91f614e
Compare
…e the focus by default Focus will be moved auotmatically if onEditingComplete is not specified, but must by moved manually if onEditingComplete is specified.
91f614e to
58f9c07
Compare
… the focus by default (flutter#63592) Focus will be moved automatically if onEditingComplete is not specified, but must by moved manually if onEditingComplete is specified.
… the focus by default (flutter#63592) Focus will be moved automatically if onEditingComplete is not specified, but must by moved manually if onEditingComplete is specified.
Description
Focus will be moved automatically if
onEditingCompleteis not specified, but mustby moved manually if
onEditingCompleteis specified.Related Issues
Tests
Breaking Change