JSPM

shortcut-picker-nwjs

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q27560F
  • License MIT

Key picker for nw.js

Package Exports

  • shortcut-picker-nwjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shortcut-picker-nwjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

shortcut-picker-nwjs (spn)

Key picker for nw.js

Installation

npm

$ npm install shortcut-picker-nwjs

Example

// example
})

API

Name Aliases

Common aliases are also supplied:

> for (var alias in spn.aliases) { console.log(alias, spn(spn(alias))) }
ctl ctrl
pause pause/break
break pause/break
caps caps lock
escape esc
pgup page up
pgdn page up
ins insert
del delete
spc space

Maps

Key code/name maps are available directly as spn.codes and spn.names respectively.

spn.names[13] // => 'enter'
spn.codes['Enter'] // => 13

Credit

 project  : spn
 repo age : 2 years, 4 months
 active   : 19 days
 commits  : 48
 files    : 13
 authors  :
    26	Tim Oxley        54.2%
    10	Tim              20.8%
     4	jkroso           8.3%
     3	Amir Abu Shareb  6.2%
     1	TJ Holowaychuk   2.1%
     1	Nathan Zadoks    2.1%
     1	Kenan Yildirim   2.1%
     1	Yoshua Wuyts     2.1%
     1	Greg Reimer      2.1%

Original key mappings lifted from http://jsfiddle.net/vWx8V/ via http://stackoverflow.com/questions/5603195/full-list-of-javascript-shortcut-picker-nwjss

License

MIT