w3c-keyname

WebJar for w3c-keyname

Лицензия

Лицензия

MIT
Категории

Категории

KeY Данные Data Formats Formal Verification
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

w3c-keyname
Последняя версия

Последняя версия

2.2.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

w3c-keyname
WebJar for w3c-keyname
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/marijnh/w3c-keyname

Скачать w3c-keyname

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/w3c-keyname/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>w3c-keyname</artifactId>
    <version>2.2.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/w3c-keyname/
implementation 'org.webjars.npm:w3c-keyname:2.2.4'
// https://jarcasting.com/artifacts/org.webjars.npm/w3c-keyname/
implementation ("org.webjars.npm:w3c-keyname:2.2.4")
'org.webjars.npm:w3c-keyname:jar:2.2.4'
<dependency org="org.webjars.npm" name="w3c-keyname" rev="2.2.4">
  <artifact name="w3c-keyname" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='w3c-keyname', version='2.2.4')
)
libraryDependencies += "org.webjars.npm" % "w3c-keyname" % "2.2.4"
[org.webjars.npm/w3c-keyname "2.2.4"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
2.2.4
2.2.2
1.1.8