mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-06 17:12:07 +08:00
refactor: debugLog for frontend (#5587)
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user