Skip to content

Increase support for keyboard events #249

Open
@ospfranco

Description

@ospfranco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions