Easy handle keyboard shortcuts with JavaScript

If you are using key combinations on your website that triggers custom AJAX requests, effects or any other things, than you surely need to manipulate the keyboard. To help you with this, today we present Mousetrap, a standalone library that has no dependencies and is quite lightweight (only 1.4kb minified and gzipped).

Current browser support for Mousetrap is: IE6+, Safari, Firefox and Chrome and there are multiple keys supported as well as key combinations. You can use modifier keys like shift, ctrl, alt, option, meta, and command or use special keys like backspace, tab, enter, return, capslock, esc, escape, space, pageup, pagedown, end, home, left, up, right, down, del and combined them with regular keys to suit your needs.

Easy handle keyboard shortcuts with JavaScript

JavaScript keyboard manipulation

View Mousetrap

Related Posts

JavaScript URL manipulation library

PHP image manipulation library: Zebra Image

Bind Keyboard combinations to events with JavaScript: jWerty

Leave a Reply