hodgef/react-simple-keyboard

add Event to onKeyReleased callback

alex-waverley opened this issue · 2 comments

react-simple-keyboard version - 3.5.17

When the option physicalKeyboardHighlightPressUsePointerEvents={true} is used, onKeyPress callback contains 2 arguments: button and event. Event is present if user clicks on virtual keyboard and event is undefined on physical one. Is it possible to add event as argument to onKeyReleased so that it would be easy to tell the difference between where the event comes from?

Done. Thanks!

Can the documentation please be updated to reflect above change?