-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Web/Desktop Press Enter key to go next #3977
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luacmartins I locally merged with This branch (enter-go-next) doesn't modify any styling. I think we're good to merge with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it is probably a regression. LGTM, we just need to fix the conflict and we are good to go.
Thanks for the fixes! One last comment that I have: pressing Screen.Recording.2021-07-15.at.12.53.51.PM.mov |
Yes, that's the intended behaviour. Both need to be fixed in a seperate issue because of support for arrow keys etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @rushatgabhane!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging in version: 1.0.78-3🚀
|
🚀 Deployed to production in version: 1.0.79-4🚀
|
Details
Convert the functional component
Button
to a class component.Create a new prop
pressOnEnter
forButton
.If it's true,
onPress()
is called whenEnter
key is pressed.This is done by adding
Enter
as a keyboard shortcut foronPress()
usinglibs/KeyboardShortcut
Unsubscribe on unmount.
For all the pages like request payment, add workspace etc.
Pass the prop
pressOnEnter
to their buttons, so thatonPress()
is called whenEnter
key is pressed.Remove redundant event listeners for
Enter
fromBaseModal
.And add
pressOnEnter
to replicate previous behaviour ofConfirmModal
Fixed Issues
$ #3785
Tests
Request payment
Enter
to go next.Enter
makes the payment request.Add PayPal.me
Enter
adds PayPal account.Add workspace
Enter
adds workspace.Split bill in group chat
Enter
to go next.Enter
confirms split.Workspace Invite Page
Enter
invites the user.QA
Verify that mobile apps don't crash by navigating to the above mentioned pages.
Tested On
Screenshots
Web
Screencast.from.14-07-21.08_27_42.AM.+03.mp4
Screencast.from.14-07-21.08_33_19.AM.03.mp4
Desktop