Issue
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 ctrlKeyoptionKey instead of altKeycommandKey instead of metaKeyleftArrowKey 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.
Expected Behavior
Align as much as possible with react-native-windows and the Keyboarding API Proposal
Issue
The new keyboard events added in #657 has some inconsistencies with the corresponding
IKeyboardEventtype inreact-native-windowsalong with the Keyboarding API Proposal.Some examples:
controlKeyinstead ofctrlKeyoptionKeyinstead ofaltKeycommandKeyinstead ofmetaKeyleftArrowKeyinstead 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/onKeyUpevents and log theirnativeEventproperty.Expected Behavior
Align as much as possible with
react-native-windowsand the Keyboarding API Proposal