perf: 优化 ctrl 监听

This commit is contained in:
奔跑的面条
2022-10-10 18:47:07 +08:00
parent 0d5e6d6e53
commit 5e28c513a4
5 changed files with 14 additions and 33 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ interface Window {
$t: any
$vue: any
// 键盘按键记录
$KeyboardActive?: Set<string>
$KeyboardActive?: { [T: string]: boolean }
}
declare type Recordable<T = any> = Record<string, T>
declare type Recordable<T = any> = Record<string, T>