Files
NapCatQQ/.pnpm-store/v3/files/e9/4979c58262b5611304fce21b978c89fb4b9a572b896ae31923b6825ce2e154c558eae9f9897e96a40e98147217752c6e65c486b9c293987a701cb223247355
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
393 B
Plaintext

"use client";
// src/utils/index.ts
import { isAppleDevice } from "@react-aria/utils";
import { isMac } from "@react-aria/utils";
function isNonContiguousSelectionModifier(e) {
return isAppleDevice() ? e.altKey : e.ctrlKey;
}
function isCtrlKeyPressed(e) {
if (isMac()) {
return e.metaKey;
}
return e.ctrlKey;
}
export {
isNonContiguousSelectionModifier,
isCtrlKeyPressed
};