You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new keyboard events added in #657 has some inconsistencies with the corresponding IKeyboardEvent type in react-native-windows along with the Keyboarding API Proposal.
Some examples:
controlKey instead of ctrlKey
optionKey instead of altKey
commandKey instead of metaKey
leftArrowKey instead of key == 'ArrowLeft'
It would be great to get the modifier keys aligned across platforms, especially since the correct ones are already used for mouse events, and it would be especially nice to provide the "virtual key" strings for arrow keys, enter key, etc. (see here in RNW)
Steps to Reproduce
Add onKeyDown/onKeyUp events and log their nativeEvent property.
Thanks for filling this. It's definitely a bug on our end and I've gotten reports from some other React-Native clients about this as well- we'll look into fixing it soon.
Issue
The new keyboard events added in #657 has some inconsistencies with the corresponding
IKeyboardEvent
type inreact-native-windows
along with the Keyboarding API Proposal.Some examples:
controlKey
instead ofctrlKey
optionKey
instead ofaltKey
commandKey
instead ofmetaKey
leftArrowKey
instead ofkey == 'ArrowLeft'
It would be great to get the modifier keys aligned across platforms, especially since the correct ones are already used for mouse events, and it would be especially nice to provide the "virtual key" strings for arrow keys, enter key, etc. (see here in RNW)
Steps to Reproduce
Add
onKeyDown
/onKeyUp
events and log theirnativeEvent
property.Expected Behavior
Align as much as possible with
react-native-windows
and the Keyboarding API ProposalThe text was updated successfully, but these errors were encountered: