Vanessa 2022-09-09 11:18:17 +08:00
parent 05e459a911
commit a44227a4c1

View file

@ -1,6 +1,6 @@
import {isCtrl} from "./compatibility";
// 是否匹配 ⇧⌘[] / ⌘[] / ⌥[] / ⌥⌘[] / ⇧Tab / []
// 是否匹配 ⇧⌘[] / ⌘[] / ⌥[] / ⌥⌘[] / ⌥⇧[] / ⌥⇧⌘[] / ⇧Tab / []
export const matchHotKey = (hotKey: string, event: KeyboardEvent) => {
if (hotKey === "") {
return false;