feat(shortcuts): add support for 'commandorcontrol' key handling based on OS
This commit is contained in:
@@ -30,6 +30,8 @@ export const useShortcut = (
|
||||
switch (key.toLowerCase()) {
|
||||
case 'command':
|
||||
return 'meta'
|
||||
case 'commandorcontrol':
|
||||
return isMac ? 'meta' : 'ctrl'
|
||||
default:
|
||||
return key.toLowerCase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user