-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Creating a separate issue to track the APIs needed for overall keyboarding and routed events support in react-native-windows.
Scenarios:
- This is needed before we can solve issues tracked by Implement keyboard, gamepad invocation for RN-JS components #2085 , Improved keyboarding behaviors for lists #2107 and perhaps Enable XYFocus behavior #2197 .
- This is also needed in order for apps to enable custom keyboarding behaviors at any layer, for example - ability to handle arrow keys, Esc key strokes from a custom TextInput component to wire up custom behaviors before the framework executes a default behavior.
Scope:
- Introduce APIs like ReactJS Keyboard events in react-native-windows.
- Do they map to native UWP Keyboard events in implementation?
- At what layer are these events exposed?
- Spec the behavior expectations from a threading model, bubbling/tunneling nature of these routed events in react-native-windows.
- Will this be specific to Windows or can this be implemented in a platform agnostic manner and pulled to react-native?
[Updated 5/30]
Proposal:
The spec/proposal for this has work has been captured here . This has passed initial review and we can go ahead with the implementation for now. There are a few outstanding broader eventing threading model related issues that need to be resolved with the RN/React community which we shall be doing in parallel. Once we feel confident about the shape of this API, the spec/proposal draft will be PR'ed into react-native master fork for broader feedback and adding support for other platforms as well.