jaywcjlove / react-hotkeys

React component to listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.

Home Page:https://jaywcjlove.github.io/react-hotkeys/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Examples and library do not match up

lostpebble opened this issue · comments

Also, the codepen example seems to be broken?

My types are telling me that keyName doesn't exist on the <HotKeys/> component - instead it wants me to use keyMap. So the Readme example doesn't match the library at the moment... I'm struggling to understand how to use this.

I'm using the latest v2 package - but I had the same issue on the v1 package.

Nevermind, I had react-hotkeys installed by mistake, instead of this library react-hot-keys.