0.0.3 • Published 1 year ago

@aurouscia/keyboard-shortcut v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

键盘快捷键监听小工具

初始化

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

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

shortcut.startListen()

页面/编辑器离开时:

shortcut.dispose()

将会removeEventListener,不再preventDefault

0.0.3

1 year ago

0.0.1

1 year ago

0.0.2

1 year ago

0.0.0

1 year ago