react-shortcut
react-shortcut copied to clipboard
Overriding default browser commands
I would like to override CMD+F
to call my own function. At this point, I don't see a way to do it.
Solution
Returning the event object back in the callback can allow the user to preventDefault()
.