This repository has been archived on 2025-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
project-client/src/main/keybinds.ts
2024-05-18 00:41:36 +03:00

19 lines
515 B
TypeScript

/*
* SPDX-License-Identifier: GPL-3.0
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
*/
import { IpcEvents } from "shared/IpcEvents";
import { mainWin } from "./mainWindow";
export function initKeybinds() {
process.on("SIGPIPE", async () => {
mainWin.webContents.send(IpcEvents.TOGGLE_SELF_MUTE);
});
process.on("SIGUSR2", () => {
mainWin.webContents.send(IpcEvents.TOGGLE_SELF_DEAF);
});
}