An open API service indexing awesome lists of open source software.

https://github.com/kui/key-input-elements

Custom elements to input key events to <input> element.
https://github.com/kui/key-input-elements

Last synced: 5 months ago
JSON representation

Custom elements to input key events to <input> element.

Awesome Lists containing this project

README

          

# key-input-elements

Custom elements to input key press events.

- [Demo](https://kui.github.io/key-input-elements/)
- [Demo source](https://github.com/kui/key-input-elements/blob/master/docs/index.html)
- [npm](https://www.npmjs.com/package/key-input-elements)

## Usage

Put an `key-input` element to your HTML.

```html

import * as ki from "./js/key-input-registerer.js";
ki.register();

```

Then press `D` key, the `key-input` displays `KeyD`. And then press `D` key with any shift keys, it displays `Shift + KeyD`.

See [demo](https://kui.github.io/key-input-elements/) for details.