A javascript package with key code constants.
MIT License
Bot releases are hidden (Show)
Published by kabirbaidhya over 4 years ago
Update missing keys and prefix key codes specific to firefox #36 [breaking change] (kabirbaidhya)
KEY_FIREFOX_
KEY_SEMICOLON
and KEY_EQUALS
were previously using the firefox specific values - now updated to use the standard values. To use the older value you'll need to use KEY_FIREFOX_SEMICOLON
and KEY_FIREFOX_EQUALS
. See #35KEY_RIGHT_CMD
value which is 92
- old value was wrong.KEY_DASH = 189
Published by kabirbaidhya about 5 years ago
Published by kabirbaidhya about 5 years ago
For ES2015+ default import syntax is no longer supported.
Upgrade will need the following change if you're using ES2015+.
- import KeyCode from 'keycode-js';
+ import * as KeyCode from 'keycode-js';
Alternatively, you can still use named export.
import { KEY_RETURN } from 'keycode-js';
Published by kabirbaidhya over 5 years ago
Published by mesaugat about 6 years ago
unpkg
and jsdelivr
to package.json
https://unpkg.com/keycode-js
https://cdn.jsdelivr.net/npm/keycode-js
https://unpkg.com/[email protected]/dist/keycode.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/keycode.min.js
Published by mesaugat about 6 years ago
Published by mesaugat about 6 years ago
Published by mesaugat almost 7 years ago
export
instead of returning a wrapper object with constants. #5 [refactor]Thanks @mesaugat @bryanjhv @frameshft for the contribution.
Published by kabirbaidhya almost 8 years ago
Published by kabirbaidhya almost 8 years ago
Published by kabirbaidhya over 8 years ago
Published by kabirbaidhya over 8 years ago
Published by kabirbaidhya over 8 years ago