mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 18:35:13 +00:00
RevealAllSpoilers: use cmd key on macOS (#3697)
This commit is contained in:
parent
66a8eb4854
commit
d77fa7c206
1 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue