From 765ffc0b57397781e0281ed0dc93ff7f0df8ad81 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Fri, 4 Apr 2025 13:39:55 +0000 Subject: [PATCH] MacOs: fix DevTools shortcut (#1141) --- src/renderer/patches/allowDevToolsKeybind.ts | 19 +++++++++++++++++++ src/renderer/patches/index.ts | 1 + 2 files changed, 20 insertions(+) create mode 100644 src/renderer/patches/allowDevToolsKeybind.ts diff --git a/src/renderer/patches/allowDevToolsKeybind.ts b/src/renderer/patches/allowDevToolsKeybind.ts new file mode 100644 index 0000000..59698e2 --- /dev/null +++ b/src/renderer/patches/allowDevToolsKeybind.ts @@ -0,0 +1,19 @@ +/* + * Vesktop, a desktop app aiming to give you a snappier Discord Experience + * Copyright (c) 2025 Vendicated and Vesktop contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { addPatch } from "./shared"; + +addPatch({ + patches: [ + { + find: '"mod+alt+i"', + replacement: { + match: /"discord\.com"===location\.host/, + replace: "false" + } + } + ] +}); diff --git a/src/renderer/patches/index.ts b/src/renderer/patches/index.ts index 439d558..c82f481 100644 --- a/src/renderer/patches/index.ts +++ b/src/renderer/patches/index.ts @@ -7,6 +7,7 @@ // TODO: Possibly auto generate glob if we have more patches in the future import "./enableNotificationsByDefault"; import "./platformClass"; +import "./allowDevToolsKeybind"; import "./hideSwitchDevice"; import "./hideVenmicInput"; import "./screenShareFixes";