Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 651 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 651 Bytes

key-input-elements

Custom elements to input key press events.

Usage

Put an key-input element to your HTML.

<script type="module">
  import * as ki from "./js/key-input-registerer.js";
  ki.register();
</script>
<input is="key-input" />

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

See demo for details.