Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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!");
});
```