mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-01 09:49:03 +08:00
feat(shortcuts): add support for 'commandorcontrol' key handling based on OS
This commit is contained in:
parent
52c087fd22
commit
49469160b0
@ -30,6 +30,8 @@ export const useShortcut = (
|
||||
switch (key.toLowerCase()) {
|
||||
case 'command':
|
||||
return 'meta'
|
||||
case 'commandorcontrol':
|
||||
return isMac ? 'meta' : 'ctrl'
|
||||
default:
|
||||
return key.toLowerCase()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user