2.2.8 • Published 3 years ago

w3c-keyname v2.2.8

Weekly downloads
183,171
License
MIT
Repository
github
Last release
3 years ago

W3C keyname

Tiny library that exports a function keyName that takes a keyboard event and returns a KeyboardEvent.key-style string. Will use the actual key property of the event if available, and fall back to a value synthesized from the keyCode otherwise.

Probably often wrong on non-US keyboards, since the correspondence between a key code and the character it produces when shift is held is predicted based on a hard-coded table. Meant as a fallback for KeyboardEvent.key, not a replacement.

The lookup tables from key codes (event.keyCode) to names are exported as base (when Shift isn't held) and shift (when Shift is held).

License: MIT

@ketcher/react@everything-registry/sub-chunk-3108winx-form-winxtibetjavalent-obsidian-overloadketcher-reactketcher-react-customketcher-react-shuzhang@waltonseymour/ketcher-react@wavedrom/doppler@tmp_blocksuite_blakor/block-std@uidu/editor-core@useblock/block-std@yaskevich/extension-figureeditor-wysiwyg-alteditor-core-funcfixed_form_builder@blockmah/block-std@blockeditor/block-std@blocksuite/std@blocksuite/block-std@blocksuite-zh/block-std@cbi-blocksuite/block-stdcanva-editorcanva.jscodemirror-6-prereleaseclojure-modecozy-editor-corebangle-play@aelgasser/react-molecule-sketcher@asiz33/smartblok-vendure-plugin@atlaskit/editor-common@atlaskit/editor-plugin-type-ahead@atlaskit/editor-plugin-expand@alisallon/blocksuite-block-std@amity8851/ketcher-reacttiptap-text-direction-extension@infinitebrahmanuniverse/nolb-w3multishiftobsidian-utilitiesreact-canvajsprosemirror-keymapprosemirror-additional-marksplugin_backslash@datavis-tech/codemirror-6-prerelease@cozy/editor-core@codemirror/view@codemirror/next@editorsuite/block-std@clutch-marketplace/rich-markdown-editor@emeraldsci/ketcher-react@hata6502/codemirror-view@hieuquang2212/form@img-arena/img-ui-mui-theme@img-arena/ui-core@jeffrafter/codemirror-view@noya-app/noya-keymap@kunalukey/tiptap-pagination-patch@nextjournal/clojure-mode@new_blocksuite_blakor/block-std@kalamazoo/editor-core@mahblock/block-std@reactivepad/codemirror-next@pathintegral/block-std@missive/prosemirror-keymap@moustaphacamara/ketcher-react@mrkindy/prosemirror-tables@nader3456/zigbee2mqtt-frontend
2.2.8

3 years ago

2.2.7

3 years ago

2.2.5

3 years ago

2.2.6

3 years ago

2.2.3

6 years ago

2.2.4

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

7 years ago

2.0.0

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago