-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Entry field Enter does not always move to next field #5724
Comments
verified repro on Android 12 using above project. |
Just to add, the |
Return key treatment found on 6.0.400-preview.22301.10: ANDROID:
iOS
Windows (tested with external keyboard only)
Preferred behavior:
|
Thanks @Forestbrook, very thorough. I'd just add that multi-line entry fields (text blocks) present an issue for "Next' behavior because it's often more convenient for the end user if they perform a new line function rather than switching to the next field. This does leave the problem of how to signal a switch to the next field using a soft keyboard, on Android at least, see issue #5730. I suspect in most cases it's easiest to use a gesture to do that, but one could imagine coding triple enter or something of that sort to mean the same thing. |
You can use the Editor control if you need multiple lines. |
@Forestbrook wrote "You can use the Editor control if you need multiple lines" Sorry, I should have been clearer, I agree not only can you use an Editor for multi-line input, you should (issue #5730 does) so you make a good point that multi-line input is a non-issue for Entry fields. An Editor Control has the problem of how to signal end of entry as opposed to end of line, but it should not be an issue for an Entry field since they are the same thing. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm struggling with this as well |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Additional Notes
XF
implemented the forward motion manually. OnAndroid
the forward behavior happens automatically so I'm curious why this behavior doesn't work automatically. Ideally, we can just make it work opposed to having to implement our own focus search code.Next
fails to work because forOnEditorAction
we sete.Handled
to true for everything soAndroid
doesn't fall back to its default behavior everDescription
On a screen with multiple entry fields the treatment of the enter key is inconsistent. What I've seen so far:
On Android, if
ReturnType
is set toNext
the on screen key appearance changes to a 'Tab' icon and clicking it does nothing. IfReturnType="Done"
the icon changes to an "Enter" icon and clicking it calls the Completed action. In neither case does it advance focus to the next field.On Windows pressing the enter key calls
OnCompleted
whetherReturnType
is set toDone
orNext
and the the focus switches to the next field ifReturnType
is set toNext
(and notDone
) all of which seems correct.Xamarin Forms acts like Windows (above) except that pressing enter in a field where
ReturnType="Done"
causes the field to be unfocused rather than focusing on the next field asNext
would.Steps to Reproduce
Here's what you should see (the blue virtual key is the one you should click on):
Version with bug
Preview 14 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11, Windows 10
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: