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

Fix IME action logic on CVC field in CardMultilineWidget #790

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary
If the postal code field is not shown, the CVC field
is the last one in the form and the action on the
keyboard when the CVC field is focused should be
"Done" (i.e. checkmark - see screenshot).
Otherwise, show the "Next" action (i.e. right arrow).

screenshot_1548867858

Motivation
Showing the correct IME action improves user experience
and accessibility

https://developer.android.com/training/keyboard-input/style#Action

**Summary**
If the postal code field is not shown, the CVC field
is the last one in the form and the action on the
keyboard when the CVC field is focused should be
"Done" (i.e. checkmark). Otherwise, show the "Next"
action (i.e. right arrow).

**Motivation**
Showing the correct IME action improves user experience
and accessibility

https://developer.android.com/training/keyboard-input/style#Action
@sergejsha
Copy link

Looks good. It would also be interesting to know why I don't see "done" button in the action bar. Anyway having keyboard's button behaving correctly is a big deal. Thanks for fixing.

@mshafrir-stripe mshafrir-stripe merged commit df83cf2 into master Jan 30, 2019
@mshafrir-stripe mshafrir-stripe deleted the cvc-ime branch January 30, 2019 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants