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

If backspace pressed in empty box, move to previous box #37

Merged
merged 1 commit into from Sep 11, 2023

Conversation

avraham-mayer
Copy link
Contributor

i noticed that if backspace is pressed in a box with a character in it, the character is erased and focus is transferred to the previous box
during editing when a character is entered focus is transferred to the next box - which is empty
if backspace is pressed in the empty box, nothing happens because the onChange function is not triggered by a backspace in an empty text field
i added a check in the onKey of the existing RawKeyboardListener to check if backspace is pressed in an empty box, and move to the previous box

if backspace pressed in empty box, move to previous box
@awaik awaik merged commit 2270c69 into awaik:master Sep 11, 2023
@awaik
Copy link
Owner

awaik commented Sep 11, 2023

Hi!
Thank you for your contribution - merged and published
https://pub.dev/packages/flutter_verification_code/changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants