@aurouscia/keyboard-shortcut
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

键盘快捷键监听小工具

初始化

let shortcut = new ShortcutListener(触发回调,键名称,是否需要同时按住ctrl)

页面/编辑器加载完成时:

shortcut.startListen()

页面/编辑器离开时:

shortcut.dispose()

将会removeEventListener,不再preventDefault

Readme

Keywords

none

Package Sidebar

Install

npm i @aurouscia/keyboard-shortcut

Weekly Downloads

6

Version

0.0.3

License

Apache-2.0

Unpacked Size

15.5 kB

Total Files

5

Last publish

Collaborators

  • aurouscia