simple-hotkeys

WebJar for simple-hotkeys

Лицензия

Лицензия

MIT
Категории

Категории

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

Группа

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

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

simple-hotkeys
Последняя версия

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

1.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

simple-hotkeys
WebJar for simple-hotkeys
Ссылка на сайт

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

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

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

https://github.com/mycolorway/simple-hotkeys

Скачать simple-hotkeys

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.bower : jquery jar [2,3)
org.webjars.bower : simple-module jar [2,3)

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

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

simple-hotkeys

Options

  • el - jQuery selector / jQuery Object / Node;

If you want to bind hotkeys to dynamic adding element, please pass a selector as el.
If the el is null or doesn't exist, document element would be used by default.

Api

  • add(shortcut, callback(e)) - add a hotkey.
  • remove(shortcut) - remove a hotkey
  • destroy() - off events and clean up.

Usage

hotkeys = simple.hotkeys();
hotkeys.add("ctrl + b", function(e){
    console.log("ctrl + b pressed");
}).add("ctrl + h"], function(e){
    console.log("Help");
});
org.webjars.bower

彩程设计

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

Версия
1.0.3