Skip to content
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

Increase support for keyboard events #249

Open
ospfranco opened this issue Jun 19, 2020 · 0 comments
Open

Increase support for keyboard events #249

ospfranco opened this issue Jun 19, 2020 · 0 comments

Comments

@ospfranco
Copy link

Introduction

As React-Native starts expanding to more platforms, namely macOS and Windows, the support for more keyboard events is needed

Details

To be more concrete, I'm currently trying to create a autocomplete textfield, the UI part is no problem, however, when trying to interact via keyboard events react-native simply allows no way to achieve this functionality.

Adding support for more keyboard events, either global shortcuts or on specific components (like TextInput) is, I believe, necessary.

I've created an issue on the react-native-macos repo, but since this is not implemented base rn, it doesn't seem like it will get implemented anytime soon.

Discussion points

  1. Expand the range of currently fired events on the onKeyPress handler
  2. Add the ability to call preventDefault on keyboard events to stop propagation to any currently focused component
  3. Adding support for global shortcuts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant