implement global shortcuts with electron api
This commit is contained in:
@@ -83,5 +83,7 @@ export const enum IpcCommands {
|
||||
|
||||
GET_LANGUAGES = "navigator.languages",
|
||||
|
||||
SCREEN_SHARE_PICKER = "screenshare:picker"
|
||||
SCREEN_SHARE_PICKER = "screenshare:picker",
|
||||
|
||||
HANDLE_KEY_BIND = "keyBinds:handle"
|
||||
}
|
||||
|
||||
Vendored
+3
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
import type { Rectangle } from "electron";
|
||||
import { KeyBind } from "renderer/globalShortcuts/ShortcutSettings";
|
||||
|
||||
export interface Settings {
|
||||
discordBranch?: "stable" | "canary" | "ptb";
|
||||
@@ -46,6 +47,8 @@ export interface Settings {
|
||||
onlySpeakers?: boolean;
|
||||
onlyDefaultSpeakers?: boolean;
|
||||
};
|
||||
|
||||
keyBinds?: KeyBind[];
|
||||
}
|
||||
|
||||
export interface State {
|
||||
|
||||
Reference in New Issue
Block a user