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

Triggering onEnter callback as keydown event, not keyup #88

Open
MarkLunney opened this issue Jan 15, 2018 · 0 comments
Open

Triggering onEnter callback as keydown event, not keyup #88

MarkLunney opened this issue Jan 15, 2018 · 0 comments

Comments

@MarkLunney
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant