Vanessa 2024-04-27 16:00:03 +08:00
parent 4a0bfa4b8e
commit 28a5712513

View file

@ -113,7 +113,7 @@ export const matchHotKey = (hotKey: string, event: KeyboardEvent) => {
}
const isMatchKey = keyCode === Constants.KEYCODELIST[event.keyCode];
// 是否匹配 ⌥[] / ⌥⌘[]
if (isMatchKey && event.altKey && !event.shiftKey &&
if (isMatchKey && event.altKey && !event.shiftKey && hotKeys.length < 4 &&
(hotKeys.length === 3 ? (isOnlyMeta(event) && hotKey.startsWith("⌥⌘")) : isNotCtrl(event))) {
return true;
}