jsKeysConfig generator

A simple generator of keys config for javascript apps (keydown and keyup events)

Tógtha le JavaScript, HTML5, CSS3,

  • 189 cuairt
  • 0 nóta tráchta

Tuilleadh Eolais Faoin Taispeántas Seo Ón Údar

1. Set settings
A sorting type (by default - groups and alphabetical) and columns.

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

3. Get config
and copy it in your js-code.

4. Use config
el.addEventListener("keyup", function(e) {
switch (e.keyCode) {
case KEYS.ENTER:
// code
case KEYS.DELETE:
// code
}
}, false);

Gan nótaí tráchta.

Log in to add your own.

About this Demo

Íosluchtaigh an Cód Foinseach Comhad ZIP · 11.27 KB

Browse the Source

Cuirtear an taispeántas seo ar fáil faoin cheadúnas GPL.

More by summerstyle