@w-xuefeng/bindkey
v1.0.1
Published
⌨ Bind keyboard shortcut
Downloads
15
Maintainers
Readme
Bindkey
绑定键盘快捷键
Install
npm i @w-xuefeng/bindkey
Usage
import bindkey from '@w-xuefeng/bindkey';
// 添加快捷键
bindkey.add('Ctrl+C', () => {
// TODO
});
// 移除快捷键
bindkey.remove('Ctrl+C');