Skip to content

Commit fc3c9c0

Browse files
committed
fix: 修复了cmd sft I无法打开dev tools的问题
1 parent a81c855 commit fc3c9c0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/composables/useKeyboardShortcuts.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ export function useKeyboardShortcuts() {
2727
else if (isModKey && key === 'y') command = 'redo';
2828
else if (isModKey && shift && key === 'z') command = 'redo';
2929
else if (isModKey && key === 'b') command = 'toggleLeft';
30-
else if (isModKey && key === 'i') command = 'toggleRight';
30+
// 这里是为了避免打不开 dev tools
31+
else if (isModKey && !shift && key === 'i') command = 'toggleRight';
3132
else if (isModKey && key === 'k') command = 'openHelp';
3233
else if (isModKey && key === 's') command = 'save';
3334
else if (isModKey && key === 'p') command = 'export';
34-
else if (isModKey && (key === 'delete' || key === 'backspace'))
35-
command = 'delete';
35+
else if (isModKey && key === 'backspace') command = 'delete';
36+
else if (isModKey && key === 'delete') command = 'delete';
3637
else if (isModKey && key === 'arrowup') command = 'selectPrevious';
3738
else if (isModKey && key === 'arrowdown') command = 'selectNext';
3839
else if (isModKey && key === '/') command = 'toggleOoc';

0 commit comments

Comments
 (0)