refactor: debugLog for frontend (#5587)

This commit is contained in:
Sline
2025-11-25 10:01:04 +08:00
committed by GitHub
parent 64727ad660
commit caca8b2bc4
24 changed files with 181 additions and 99 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
import { KeyboardEvent } from "react";
import { debugLog } from "@/utils/debug";
const KEY_MAP: Record<string, string> = {
// Option + 特殊字符映射
"–": "Minus", // Option + -
@@ -62,7 +64,7 @@ export const parseHotkey = (keyEvent: KeyboardEvent) => {
} else if (temp.endsWith("RIGHT")) {
temp = temp.slice(0, -5);
}
console.log(temp, mapKeyCombination(temp));
debugLog(temp, mapKeyCombination(temp));
switch (temp) {
case "CONTROL":