feat(shortcuts): add support for 'commandorcontrol' key handling based on OS

This commit is contained in:
kangfenmao 2025-07-24 11:45:29 +08:00
parent 52c087fd22
commit 49469160b0

View File

@ -30,6 +30,8 @@ export const useShortcut = (
switch (key.toLowerCase()) {
case 'command':
return 'meta'
case 'commandorcontrol':
return isMac ? 'meta' : 'ctrl'
default:
return key.toLowerCase()
}