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
- Host: GitHub
- URL: https://github.com/luizkowalski/mousetrapjs
- Owner: luizkowalski
- License: mit
- Created: 2012-07-09T16:01:42.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-01-02T15:57:39.000Z (almost 11 years ago)
- Last Synced: 2025-04-30T06:08:17.249Z (6 months ago)
- Language: Ruby
- Homepage: http://craig.is/killing/mice
- Size: 166 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.