Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitnbytesio/shortkit
Handle key events
https://github.com/bitnbytesio/shortkit
Last synced: 8 days ago
JSON representation
Handle key events
- Host: GitHub
- URL: https://github.com/bitnbytesio/shortkit
- Owner: bitnbytesio
- Created: 2015-09-09T18:17:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-18T07:55:41.000Z (over 9 years ago)
- Last Synced: 2024-11-09T05:04:43.411Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shortkit
Shortkit.js requires js to work.**structure**
$.shortkit(map, ctrl, alt, shift)
```javascript
$.shortkit({
't' : function () {
alert('t is pressed with alt key down');
},
'l': function () {
alert('l is pressed with alt key down');
}
}, false, true, false);$.shortkit({
'C' : function () {
alert('c is pressed with shift key down');
}
}, false, false, true);```