An open API service indexing awesome lists of open source software.

https://github.com/luizkowalski/mousetrapjs

Gem for Mousetrap, a simple library for handling keyboard shortcuts in Javascript
https://github.com/luizkowalski/mousetrapjs

Last synced: 6 months ago
JSON representation

Gem for Mousetrap, a simple library for handling keyboard shortcuts in Javascript

Awesome Lists containing this project

README

          

# MousetrapJS
Mousetrap is a simple library for handling keyboard shortcuts in Javascript, with no external dependencies.
Documentation can be found in [here](http://craig.is/killing/mice).

## Installation

Add this line to your application's Gemfile:

gem 'mousetrapjs'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mousetrapjs

## Usage

Just add this line to your `application.js` file

```
//= require mousetrap
```

Thanks to [ccampbel](https://github.com/ccampbell/mousetrap) for the hard work.