Advertise here

Mousetrap – Tiny Javascript Library for Handling Keyboard Shortcuts

July 09, 2017     660     Text & String
Mousetrap – Tiny Javascript Library for Handling Keyboard Shortcuts

Mousetrap is a simple library for handling keyboard shortcuts in Javascript. Supported browsers are Internet Explorer 6+, Safari, Firefox, Chrome.

Features:

  • There are no external dependencies, no framework is required
  • You are not limited to keydown events (You can specify keypresskeydown, or keyup or let Mousetrap choose for you).
  • You can bind key events directly to special keys such as ? or * without having to specify shift+/ or shift+8 which are not consistent across all keyboards
  • It works with international keyboard layouts
  • You can bind Gmail like key sequences in addition to regular keys and key combinations
  • You can programatically trigger key events with the trigger() method
  • It works with the numeric keypad on your keyboard

Related Plugins

Latest Plugins