Skip to content

Commit

Permalink
Update preventMacOptionKey.
Browse files Browse the repository at this point in the history
  • Loading branch information
cweijan committed Sep 29, 2024
1 parent f03cd3e commit 763be11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/vditor/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ export const autoSymbol = (handler, editor, config) => {
e.preventDefault();
return handler.emit("editInVSCode", true);
}
if (isMac && e.altKey && e.shiftKey && config.preventMacOptionKey) {

if (isMac && config.preventMacOptionKey && e.altKey && e.shiftKey && ['Digit1', 'Digit2', 'KeyW'].includes(e.code)) {
return e.preventDefault();
}
if (e.code == 'F12') return handler.emit('developerTool')
Expand Down

0 comments on commit 763be11

Please sign in to comment.