mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 处理层级区域分组右键,多选等
This commit is contained in:
@@ -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()])
|
||||
|
||||
Reference in New Issue
Block a user