mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-22 21:35:08 +00:00
Fix Push To Talk
you love half line fixes
This commit is contained in:
parent
807ccb4a5f
commit
f654286485
1 changed files with 5 additions and 4 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Reference in a new issue