From d77fa7c2064eb493589f6f488db0209402704fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=88=98?= Date: Tue, 7 Oct 2025 05:52:35 +0900 Subject: [PATCH] RevealAllSpoilers: use cmd key on macOS (#3697) --- src/plugins/revealAllSpoilers/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/revealAllSpoilers/index.ts b/src/plugins/revealAllSpoilers/index.ts index ead746b2..ad1d89f9 100644 --- a/src/plugins/revealAllSpoilers/index.ts +++ b/src/plugins/revealAllSpoilers/index.ts @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import { Devs } from "@utils/constants"; +import { Devs, IS_MAC } from "@utils/constants"; import definePlugin from "@utils/types"; import { findByPropsLazy } from "@webpack"; @@ -39,9 +39,9 @@ export default definePlugin({ ], reveal(event: MouseEvent) { - const { ctrlKey, shiftKey, target } = event; + const { ctrlKey, metaKey, shiftKey, target } = event; - if (!ctrlKey) { return; } + if (!(IS_MAC ? metaKey : ctrlKey)) { return; } const { spoilerContent, hidden } = SpoilerClasses; const { messagesWrapper } = MessagesClasses;