Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sprngr/shortkeys.js
:skull: [Unmaintained] A javascript plugin for dirt simple keyboard shortcuts.
https://github.com/sprngr/shortkeys.js
dead
Last synced: about 2 months ago
JSON representation
:skull: [Unmaintained] A javascript plugin for dirt simple keyboard shortcuts.
- Host: GitHub
- URL: https://github.com/sprngr/shortkeys.js
- Owner: sprngr
- License: mit
- Created: 2012-06-04T02:06:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-20T20:02:45.000Z (over 11 years ago)
- Last Synced: 2024-06-20T12:24:33.800Z (3 months ago)
- Topics: dead
- Language: JavaScript
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
shortkeys.js
============A javascript plugin for dirt simple keyboard shortcuts.
Installation
------------To use this you can download a copy of either the `shortkeys.js` or `shortkeys.min.js` files and reference it
in a script tag.Or you can copy the code and include it in one of your javascript files.
Usage
-----Currently shortkeys supports shortcut creation with `Ctrl`, `Alt`, `Shift`, & `Meta` keys as a modifier, and one additional key.
Example shortcut string: ```"ctrl+a"```
Future versions should include support for more than 2 keys in a shortcut declaration.
Simple usage:
```javascript
shortkeys("ctrl+q",function(){
alert("Ermagherd Ctrl+Q was pressed!");
});
```