keyboardevent-codes
v1.0.0
Published
> exports a KeyCode type for use in web browsers based on [W3C standards][1]
Downloads
587
Readme
keyboardevent-codes
exports a KeyCode type for use in web browsers based on W3C standards
Example
import { KeyCode } from 'keyboardevent-codes';
window.addEventListener('keydown', (event: KeyboardEvent) => {
const keyCode = <KeyCode>event.code;
});