keycode-js

A javascript package with key code constants.

MIT License

Downloads
184.1K
Stars
110
Committers
8

Bot releases are visible (Hide)

keycode-js - v3.1.0 Latest Release

Published by kabirbaidhya over 4 years ago

  • Add key event code constants #38 [feature] (@kabirbaidhya)
  • Add key value constants #37 [feature] (@kabirbaidhya)
keycode-js - v3.0.0

Published by kabirbaidhya over 4 years ago

Breaking Changes

  • Update missing keys and prefix key codes specific to firefox #36 [breaking change] (kabirbaidhya)

    • Several keys we were done as per this list that also had Gecko specific constants that only worked for Firefox. They've been prefixed as KEY_FIREFOX_
    • Constants 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 #35
    • Fix KEY_RIGHT_CMD value which is 92 - old value was wrong.
    • Added a new missing key KEY_DASH = 189

Other Changes

Closed Issues

keycode-js - v2.0.3

Published by kabirbaidhya about 5 years ago

Changes

  • Generate ES5 compatible build #32 (@inspirado)
keycode-js - v2.0.2

Published by kabirbaidhya about 5 years ago

Improvements

  • Make the main build (common js) fully-compatible with ES5 #31 [bugfix] (@kabirbaidhya)
keycode-js - v2.0.1

Published by kabirbaidhya about 5 years ago

Improvements

keycode-js - v2.0.0

Published by kabirbaidhya about 5 years ago

Breaking Change

  • 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';
    

Closed issues

Improvements

keycode-js - v1.0.4

Published by kabirbaidhya over 5 years ago

Implemented enhancements

  • Add macOS left CMD and right CMD key code #15 [enhancement] (@igogo5yo)
keycode-js - v1.0.3

Published by mesaugat about 6 years ago

keycode-js - v1.0.2

Published by mesaugat about 6 years ago

  • Remove node v4 from .travis.yml
keycode-js - v1.0.1

Published by mesaugat about 6 years ago

  • Update README instructions
  • Upgrade dev dependencies
keycode-js - v1.0.0

Published by mesaugat almost 7 years ago

Improvements

  • Major overhaul and refactor #12 [refactor] (@mesaugat)
  • Integrate Travis CI for runnings tests #11 [test] (@kabirbaidhya)
  • Add tests for all the key code constants #9 [test] (@frameshft)
  • Generate type definitions (d.ts) file to add support for TypeScript #6 [enhancement] [feature]
  • Replace webpack with rollup #3 [enhancement](@mesaugat)
  • Use named export to export each key code separately #10 [enhancement] [refactor] (@mesaugat)
  • Add TypeScript declaration file #8 [enhancement] (@bryanjhv)
  • Add changelog and changelog generation script #7 [doc] [enhancement] (@kabirbaidhya)

Closed issues

  • Use ES2015 individual export instead of returning a wrapper object with constants. #5 [refactor]
  • Write unit tests to test it returns all the constant keys with correct values #4 [test]
  • Integrate Travis CI and add a travis badge #2

Thanks @mesaugat @bryanjhv @frameshft for the contribution.

keycode-js - v0.0.4

Published by kabirbaidhya almost 8 years ago

  • Add tests & lint scripts
  • Update npm scripts and packages
keycode-js - v0.0.3

Published by kabirbaidhya almost 8 years ago

  • Add bower support
keycode-js - v0.0.2

Published by kabirbaidhya over 8 years ago

  • Refactor and simplify things even more
keycode-js - v0.0.2-0

Published by kabirbaidhya over 8 years ago

  • Add all the common key code constants
keycode-js - v0.0.1-0

Published by kabirbaidhya over 8 years ago

  • Initial Pre-release