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

@MarkLunney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions