文件名称:kevent:键盘事件处理程序
文件大小:5KB
文件格式:ZIP
更新时间:2024-06-03 17:49:39
JavaScript
凯文 键盘事件处理程序 用法: import { kevent } from 'https://unpkg.com/kevent@1.0.0/index.js' const on = kevent ( ) on . keypress . ctrl . shift . k ( ( ) => { console . log ( 'keypress: ctrl+shift+k' ) } ) // But keypress is the default event so we can omit it on . ctrl . shift . k ( ( ) => { console . log ( 'keypress: ctrl+shift+k' ) } ) // Most letter keys can be uppercase so we can omit shift on . ctr
【文件预览】:
kevent-master
----definitions.js(2KB)
----LICENSE(1KB)
----README.md(2KB)
----.gitignore(914B)
----index.js(2KB)
----package.json(576B)