fixes etc

This commit is contained in:
Vendicated
2026-04-05 04:07:23 +02:00
parent f3e01c2ba4
commit cf3667c151
12 changed files with 150 additions and 22 deletions
+27
View File
@@ -0,0 +1,27 @@
/*
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2026 Vendicated and Vesktop contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Button, ErrorBoundary } from "@vencord/types/components";
import { openKeybindsModal } from "renderer/globalShortcuts/ShortcutSettings";
import { addPatch } from "./shared";
addPatch({
patches: [
{
find: "#{intl::KEYBIND_IN_BROSWER_NOTICE}",
replacement: {
match: /:(.{0,10}jsx.{0,50}messageType:.{0,100}#{intl::KEYBIND_IN_BROSWER_NOTICE})/,
replace: ":true?$self.renderKeybindsButton():$1"
}
}
],
renderKeybindsButton: ErrorBoundary.wrap(
() => <Button onClick={() => openKeybindsModal()}>Configure Vesktop Keybinds</Button>,
{ noop: true }
)
});