feat: 处理层级区域分组右键,多选等

This commit is contained in:
奔跑的面条
2022-08-14 02:36:48 +08:00
parent 3b7f9e5dec
commit 99b344bdef
4 changed files with 73 additions and 15 deletions
@@ -87,6 +87,9 @@ const macKeyList: Array<string> = [
// 处理键盘记录
const keyRecordHandle = () => {
// 初始化清空
if(window.$KeyboardActive) window.$KeyboardActive = new Set([])
document.onkeydown = (e: KeyboardEvent) => {
if(window.$KeyboardActive) window.$KeyboardActive.add(e.key.toLocaleLowerCase())
else window.$KeyboardActive = new Set([e.key.toLocaleLowerCase()])