-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
We need to add support to listen to more than one key code, e.g.:
const A = 65;
const B = 66;
keyHandler({ keyCodes: [A, B] })(MyComponent);
could probably decorate a property keyCodes
to MyComponent
:
{
alt: true,
ctrl: false,
meta: false,
shift: false,
65: true,
66: false,
}
Alternatively, the following projects looks promising:
- https://github.com/andrepolischuk/keycodes
- https://github.com/andrepolischuk/keycomb
- https://github.com/andrepolischuk/ks
If you're interesting in working on this, let me know :)