-
Notifications
You must be signed in to change notification settings - Fork 145
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 handling of keyDown/keyUp events by TextInput #1345
Conversation
fbffe69
to
367a6a3
Compare
367a6a3
to
71ca513
Compare
71ca513
to
65bd3ff
Compare
65bd3ff
to
a3cb6fd
Compare
This extends the ability to intercept `keyDown` and `keyUp` events to `TextInput`. We need this for the ability to insert newlines when holding shift in chat, along with support arrow up/down from the search input.
a3cb6fd
to
a3bd5ff
Compare
One thing I'm a little confused on: For both singleLine and multiLine TextInput, the I tried to confirm my theory (calling |
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.
Despite my confusion, change seems sound
This extends the ability to intercept `keyDown` and `keyUp` events to `TextInput`. We need this for the ability to insert newlines when holding shift in chat, along with support arrow up/down from the search input. Co-authored-by: Scott Kyle <[email protected]> Co-authored-by: Saad Najmi <[email protected]>
This extends the ability to intercept `keyDown` and `keyUp` events to `TextInput`. We need this for the ability to insert newlines when holding shift in chat, along with support arrow up/down from the search input. Co-authored-by: Scott Kyle <[email protected]> Co-authored-by: Saad Najmi <[email protected]>
Please select one of the following
This extends the ability to intercept
keyDown
andkeyUp
events toTextInput
.We need this for the ability to insert newlines when holding shift in chat, along with support arrow up/down from the search input.
Question:
Will the change here cause a conflict with #1044 ?
Changelog
[macOS] [Added] - Fix handling of keyDown/keyUp events by TextInput
Test Plan
I have updated the demo for the last test plan
Screen.Recording.2022-08-26.at.3.23.05.PM.mov
Original Test Plan
Using the added rn-tester sample ... capturing keyEvents via keyCastr.app
Before
before.mov
After
after.mov