Mousetrap – Tiny Javascript Library for Handling Keyboard Shortcuts

samuel Text & String 191 , , , ,

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 Post

Lightense Images is a tiny, dependency-free pure JavaScript image zooming library.

TinyTip is a very small tooltip jQuery plugin without using CSS. TinyTip does not force any styling over your tooltips, Read more

Nano ID is a tiny, secure URL-friendly unique string ID generator for JavaScript. Features Safe: It uses cryptographically strong random Read more

Pell is the simplest and smallest WYSIWYG text editor for web, with no dependencies. Features Pure JavaScript, no dependencies, written Read more

tCycle is a minimalist jQuery slideshow plugin that won't blow your bandwidth budget. It supports the following features: Auto-initialization Declarative Read more

PrognRoll is a tiny jQuery plugin that creates scroll progress bar on the page. You can also customize the progress Read more

Data Img is a tiny jQuery plugin to deal with responsive image delivery depending on screen width.

enquire.js is a lightweight, pure javascript library for programmatically responding to media queries. Features: JavaScript callbacks for media queries matching and Read more

Go