From f65428648554748413e7bb0f9f4fef71a30468c0 Mon Sep 17 00:00:00 2001 From: Tuxinal <24763016+tuxinal@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:50:24 +0330 Subject: [PATCH] Fix Push To Talk you love half line fixes --- src/renderer/patches/keybinds.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renderer/patches/keybinds.tsx b/src/renderer/patches/keybinds.tsx index 29d4843..491274e 100644 --- a/src/renderer/patches/keybinds.tsx +++ b/src/renderer/patches/keybinds.tsx @@ -117,7 +117,6 @@ addPatch({ [ "UNASSIGNED", "SWITCH_TO_VOICE_CHANNEL", - "PUSH_TO_TALK", "TOGGLE_OVERLAY", "TOGGLE_OVERLAY_INPUT_LOCK", "TOGGLE_PRIORITY_SPEAKER", @@ -132,9 +131,11 @@ addPatch({ return; } keybindCallbacks[id] = { - // TODO: the "undefined" here is supposed to be a context. basically only used by push to talk to determine if you are in ptt mode or not - // (it's also used by switch to channel to determine the channel but you can't really define that through xdp) - onTrigger: (keyState: boolean) => val.onTrigger(keyState, undefined), + onTrigger: (keyState: boolean) => + val.onTrigger(keyState, { + // switch to channel also requires some extra properties that would have to be supplied here + context: undefined + }), keyEvents: val.keyEvents }; actions.push({ id, name: actionReadableNames[key] || key });