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

Adds keyboard support to payment popup #1087

Merged
merged 3 commits into from
Oct 15, 2022

Conversation

yasirmturk
Copy link
Contributor

No description provided.

Copy link
Owner

@Blair2004 Blair2004 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Thank you this will be reviewed.
Much appreciated.

nsHotPress
.create( 'numpad-save' )
.whenVisible([ '.is-popup' ])
.whenPressed( 'enter', () => this.inputValue({ identifier: 'next' }))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should allow users to submit payment using the "Enter" key. This will assume, on first press if the amount is different from "0", we'll add it as a payment and set the visible amount to "0". On the second press when the amount is "0" we'll emit a "submit" event to the parent component.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super

- Fixed: improve keyboard support on Payment Popup.
@nexopos nexopos merged commit af6d7a9 into Blair2004:master Oct 15, 2022
@yasirmturk yasirmturk deleted the keyboard-for-payment branch November 12, 2022 13:58
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

3 participants