Skip to content
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

[Android] Entry ReturnType=Next not passing to next text field #4214

Closed
deakjahn opened this issue Oct 25, 2018 · 5 comments

Comments

@deakjahn
Copy link

@deakjahn deakjahn commented Oct 25, 2018

Description

When using ReturnType=Next on an Entry on Android, the button on the keyboard changes but going from one text field the next doesn't work.

Steps to Reproduce

<StackLayout Orientation="Vertical">
  <Entry Keyboard="Default" Placeholder="First name" ReturnType="Next" />
  <Entry Keyboard="Default" Placeholder="Last name" ReturnType="Next" />
  <Entry Keyboard="Default" Placeholder="Address" ReturnType="Next" />
  <Entry Keyboard="Text" Placeholder="City" ReturnType="Next" />

There is a common workaround people use: a Completed event of the Entry can call the next one:

private void AddressField_Completed(object sender, EventArgs e) => CityField.Focus();

However, this has the problem that the keyboard closes momentarily and opens again immediately.

Expected Behavior

Should both send the focus to the next text field and not dismiss the keyboard momentarily.

Basic Information

  • Version with issue: 3.3.0.912540
  • Last known good version: n/a
  • Platform Target Frameworks:
    • Android: 8.1, API 27
  • Android Support Library Version: 27.0.2.1
@pauldipietro pauldipietro added this to New in Triage Oct 25, 2018
@deakjahn deakjahn changed the title [Android] Entry ReturnType=Next not passing to next text filed [Android] Entry ReturnType=Next not passing to next text field Oct 25, 2018
@adrianknight89

This comment has been minimized.

Copy link
Contributor

@adrianknight89 adrianknight89 commented Oct 26, 2018

One problem I see with this proposal is that if the Completed event does not receive the required input, it might want to reset the field and keep the user focused on that instead of giving focus to the next entry. We might also want to jump to another entry, not necessarily the next in line, depending on UI workflow.

I don't however like seeing the keyboard open and close between focus changes on the same page when we use the Completed event. This does not happen on iOS.

@deakjahn

This comment has been minimized.

Copy link
Author

@deakjahn deakjahn commented Oct 26, 2018

It wasn't intended as a proposal at all. :-) It's a workaround people tend to use (judging by SO and Xamarin Forum answers) but has its problems. If there is a proposal, it's to fix the bug to function as the documentation promises.

@pauldipietro

This comment has been minimized.

Copy link
Member

@pauldipietro pauldipietro commented Oct 29, 2018

Validating the described behavior against 3.4 for the time being.

@pauldipietro pauldipietro moved this from New to Ready For Work in Triage Oct 29, 2018
@samhouts samhouts added the e/4 🕓 label Oct 29, 2018
@PureWeen PureWeen removed this from Ready For Work in Triage Nov 1, 2018
@ashwinkumar6

This comment has been minimized.

Copy link

@ashwinkumar6 ashwinkumar6 commented Feb 11, 2019

An alternative solution for the time being would be to use a custom effect as mentioned here

@samhouts samhouts added this to In Progress in v4.2.0 Jun 28, 2019
@samhouts samhouts moved this from In Progress to Done in v4.2.0 Jul 10, 2019
@samhouts

This comment has been minimized.

Copy link
Member

@samhouts samhouts commented Jul 18, 2019

closed by #6706

@samhouts samhouts closed this Jul 18, 2019
Android Ready For Work automation moved this from To do to Done Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v4.2.0
  
Done
5 participants
You can’t perform that action at this time.