diff --git a/components/command/CommandPanel.vue b/components/command/CommandPanel.vue index 03086dbe68..1c955a15cd 100644 --- a/components/command/CommandPanel.vue +++ b/components/command/CommandPanel.vue @@ -64,6 +64,9 @@ const result = $computed(() => commandMode : searchResult, ) +const isMac = useIsMac() +const modifierKeyName = $computed(() => isMac.value ? '⌘' : 'Ctrl') + let active = $ref(0) watch($$(result), (n, o) => { if (n.length !== o.length || !n.items.every((i, idx) => i === o.items[idx])) @@ -233,8 +236,8 @@ const onKeyDown = (e: KeyboardEvent) => {
Tip: Use - to search, - to activate command mode. + to search, + to activate command mode.