brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 164 forks source link

Add keyboard input support #577

Closed briankosw closed 4 years ago

briankosw commented 4 years ago

Adding keyboard input support as described in #379 and #535. It allows for users to set either the KeyCode (e.g. 37 for left arrow, 39 for right arrow) or the Key (e.g. "ArrowRight" for right arrow).

piotr-s-brainhub commented 4 years ago

@briankosw

Thanks for this PR. I opened https://github.com/brainhubeu/react-carousel/pull/579 instead because only for the main repo, it's possible to build a testing environment. It's according to the workflow.

DmitrySheklein commented 2 years ago

Keyboard events added or not? how does it work? Documentation is empty