mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-24 18:26:17 +03:00
fix: Update command key in keyboard shortcuts modal (#2208)
This commit is contained in:
parent
2506c02c39
commit
ae35f9d11d
1 changed files with 4 additions and 1 deletions
|
@ -21,6 +21,9 @@ interface ShortcutItemGroup {
|
||||||
items: ShortcutItem[]
|
items: ShortcutItem[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isMac = useIsMac()
|
||||||
|
const modifierKeyName = $computed(() => isMac.value ? '⌘' : 'Ctrl')
|
||||||
|
|
||||||
const shortcutItemGroups: ShortcutItemGroup[] = [
|
const shortcutItemGroups: ShortcutItemGroup[] = [
|
||||||
{
|
{
|
||||||
name: t('magic_keys.groups.navigation.title'),
|
name: t('magic_keys.groups.navigation.title'),
|
||||||
|
@ -52,7 +55,7 @@ const shortcutItemGroups: ShortcutItemGroup[] = [
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
description: t('magic_keys.groups.actions.command_mode'),
|
description: t('magic_keys.groups.actions.command_mode'),
|
||||||
shortcut: { keys: ['cmd', '/'], isSequence: false },
|
shortcut: { keys: [modifierKeyName, '/'], isSequence: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: t('magic_keys.groups.actions.compose'),
|
description: t('magic_keys.groups.actions.compose'),
|
||||||
|
|
Loading…
Reference in a new issue