react-shortcut icon indicating copy to clipboard operation
react-shortcut copied to clipboard

Overriding default browser commands

Open Ajamuar opened this issue 4 years ago • 0 comments

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().

Ajamuar avatar Jul 28 '20 11:07 Ajamuar