A simple generator of keys config for javascript browser apps (keydown and keyup events)
[http://github.com/summerstyle/jsKeysConfig] (http://github.com/summerstyle/jsKeysConfig)
Released under the GPL3 (GPL3.txt)
- Set settings
A sorting type (by default - groups and alphabetical) and columns
- Select keys
Press and select keys (a second click - deselect key)
- Get config
and copy it in your js-code
- Use config
switch (e.keyCode) {
case KEYS.ENTER:
// code
case KEYS.DELETE:
// code
}