Mousetrap is a simple library for handling keyboard shortcuts in Javascript. Supported browsers are Internet Explorer 6+, Safari, Firefox, Chrome.
Features:
keydown
events (You can specify keypress
, keydown
, or keyup
or let Mousetrap choose for you).?
or *
without having to specify shift+/
or shift+8
which are not consistent across all keyboardstrigger()
method