Skip to content

Commit faee31c

Browse files
committed
fix: combo key name, closes #48
1 parent 8c1c476 commit faee31c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface VitePluginInspectorOptions {
7373
}
7474

7575
const toggleComboKeysMap = {
76-
control: process.platform === 'win32' ? 'Ctrl(^)' : 'Control(^)',
76+
control: process.platform === 'darwin' ? 'Control(^)' : 'Ctrl(^)',
7777
meta: 'Command(⌘)',
7878
shift: 'Shift(⇧)',
7979
}
@@ -90,7 +90,7 @@ export function normalizeComboKeyPrint(toggleComboKey: string) {
9090
export const DEFAULT_INSPECTOR_OPTIONS: VitePluginInspectorOptions = {
9191
vue: 3,
9292
enabled: false,
93-
toggleComboKey: process.platform === 'win32' ? 'control-shift' : 'meta-shift',
93+
toggleComboKey: process.platform === 'darwin' ? 'meta-shift' : 'control-shift',
9494
toggleButtonVisibility: 'active',
9595
toggleButtonPos: 'top-right',
9696
appendTo: '',

0 commit comments

Comments
 (0)