Skip to content

Idea: Provide option to have KeyHandler throw an error if not inside a FocusGroup #35

Description

@dylanpyle

It looks like we explicitly do nothing in this case right now:
https://github.com/ca-la/react-focused-key-handler/blob/main/src/key-handler/index.tsx#L43

If I'm trying to compose multiple layers of key-handling components under a parent FocusGroup, it would be nice to have some kind of "strict mode" to ensure I don't accidentally render them outside of one later on.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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