Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Triggering onEnter callback as keydown event, not keyup #88

Description

@MarkLunney

Hi,

In my application I require all Binder key events to be key down events. It looks like React Keys makes an exception for the enter key to trigger on key up, while other keys use key down. (Binder.js : line 144).

Is there anyway to override this behaviour, or could this be added as a config option?

The only way I can find currently is to set a fake key config, such as enter: 0, enterdown: 13, so that this block doesn't get executed.

Thanks,
Mark

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