Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 652 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 652 Bytes

jsKeysConfig generator

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)

  1. Set settings

A sorting type (by default - groups and alphabetical) and columns

  1. Select keys

Press and select keys (a second click - deselect key)

  1. Get config

and copy it in your js-code

  1. Use config

switch (e.keyCode) {
    case KEYS.ENTER:
        // code
    case KEYS.DELETE:
        // code
}