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

For keyName, if I want Ctrl + Shift + plus sign, I declare, keyName="ctrl+shift++", but it does not work

TranVanKung opened this issue · comments

Possible work around is to use keyName="ctrl+shift+=" since + and = share a key (on most layouts

@TranVanKung https://codepen.io/jaywcjlove/pen/mdyxVPJ

<Hotkeys 
  keyName="ctrl+shift+=" 
  onKeyDown={() => {
    console.log('======')
  }}
/>

thank you very much !