GitXplorerGitXplorer
a

vscode-keyboard

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
76c940ef6996254f10e3ee5cc642d98dfa004b7f

Update README.md

aalexdima committed 9 years ago
Unverified
b20d3dc2857a84b0370f64bee1770bc3cff85cf6

Update README.md

aalexdima committed 9 years ago
Unverified
cef8e9b8eb61b4e7de0f3ea90953ef7ae11ed29f

0.1.0

jjrieken committed 9 years ago
Unverified
315679d486a8d1c57bd2802dd86cf677cd1d986e

add support for mac

jjrieken committed 9 years ago
Unverified
ce673079103e425964265288ddb334025480c0d0

Try not to fail

aalexdima committed 9 years ago
Unverified
4220b42130c9f495dc8e240799b69f51d21b91a0

pick different npm name

aalexdima committed 9 years ago

README

The README file for this repository.

OS key mapping node module Build Status

Returns what characters are produced by pressing keys with different modifiers on the current system keyboard layout.

Please note the new repository location: https://github.com/Microsoft/node-native-keymap

Installing

npm install native-keymap

Using

var keymap = require('native-keymap');
console.log(keymap.getKeyMap());

Example output when using standard US keyboard layout:

[
  ...
  { key_code: 'VKEY_OEM_2',
    value: '/',
    withShift: '?',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_3',
    value: '`',
    withShift: '~',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_4',
    value: '[',
    withShift: '{',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_5',
    value: '\\',
    withShift: '|',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_6',
    value: ']',
    withShift: '}',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_7',
    value: '\'',
    withShift: '"',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_102',
    value: '\\',
    withShift: '|',
    withAltGr: '',
    withShiftAltGr: '' } ]

Example output when using German (Swiss) keyboard layout:

[
  ...
  { key_code: 'VKEY_OEM_2',
    value: '§',
    withShift: '°',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_3',
    value: '',
    withShift: '¨!',
    withAltGr: ']',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_4',
    value: '\'',
    withShift: '?',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_5',
    value: '´ä',
    withShift: 'à',
    withAltGr: '{',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_6',
    value: '',
    withShift: '^`',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_7',
    value: '~ö',
    withShift: 'é',
    withAltGr: '',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_8',
    value: '$',
    withShift: '£',
    withAltGr: '}',
    withShiftAltGr: '' },
  { key_code: 'VKEY_OEM_102',
    value: '<',
    withShift: '>',
    withAltGr: '\\',
    withShiftAltGr: '' } ]

Supported OSes

  • linux (X11)
  • windows
  • mac

Developing

  • only tested on node v4.1.1
  • on linux: sudo apt-get install libx11-dev
  • npm install -g node-gyp
  • node-gyp configure
  • node-gyp build
  • npm test

License

MIT