greena13 / react-hotkeys

Declarative hotkey and focus area management for React
https://github.com/greena13/react-hotkeys
ISC License
2.15k stars 160 forks source link

Get sequence which triggered the handler #304

Open spiderhands opened 3 years ago

spiderhands commented 3 years ago

Is your feature request related to a problem? Please describe. In order to measure user engagement in the application, it is a good practice to collect analytics. In this case it would be great to know which sequence is used more to delete the unused ones

Describe the solution you'd like Return the sequence that triggered the event in the handler's second parameter