0.3.1 • Published 1 year ago

makeup-key-emitter v0.3.1

Weekly downloads
64
License
MIT
Repository
github
Last release
1 year ago

makeup-key-emitter

Emits custom events for common accessibility keys (arrowRightKeyDown, escKeyDown, etc).

Experimental

This module is still in an experimental state; until it reaches v1, all minor releases must be considered as breaking changes.

Example

import KeyEmitter from 'makeup-key-emitter';

let el = document.getElementById('#widget1');

KeyEmitter.addKeyDown(el);

el.addEventListener('arrowRightKeyDown', function(e) {
    console.log(this, e.type); // outputs (el1, 'arrowRightKeyDown')
});

Methods

  • addKeyDown(el)
  • addKeyUp(el)
  • removeKeyDown(el)
  • removeKeyUp(el)
  • add(el)
  • remove(el)
0.3.1

1 year ago

0.3.0

2 years ago

0.2.0

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago