mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
[Video Conference Mute] Push to Reverse (#24892)
* Add push to talk
* Fix multiple callback WM_KEYDOWN while holding shortcut
* Code review suggestions
* Rename feature
* Revert "Rename feature"
This reverts commit 82d64bf57c.
* Add switch and settings
* Change type of bool property. Handle settings.
* Description
* Update src/modules/videoconference/VideoConferenceModule/VideoConferenceModule.cpp
Always consume hotkey press
Co-authored-by: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>
---------
Co-authored-by: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>
This commit is contained in:
@@ -33,6 +33,17 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
Code = 65,
|
||||
});
|
||||
|
||||
this.PushToTalkMicrophoneHotkey = new KeyboardKeysProperty(
|
||||
new HotkeySettings()
|
||||
{
|
||||
Win = true,
|
||||
Ctrl = false,
|
||||
Alt = false,
|
||||
Shift = true,
|
||||
Key = "I",
|
||||
Code = 73,
|
||||
});
|
||||
|
||||
this.MuteCameraHotkey = new KeyboardKeysProperty(
|
||||
new HotkeySettings()
|
||||
{
|
||||
@@ -43,6 +54,8 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
Key = "O",
|
||||
Code = 79,
|
||||
});
|
||||
|
||||
this.PushToReverseEnabled = new BoolProperty(false);
|
||||
}
|
||||
|
||||
[JsonPropertyName("mute_camera_and_microphone_hotkey")]
|
||||
@@ -51,6 +64,12 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
[JsonPropertyName("mute_microphone_hotkey")]
|
||||
public KeyboardKeysProperty MuteMicrophoneHotkey { get; set; }
|
||||
|
||||
[JsonPropertyName("push_to_talk_microphone_hotkey")]
|
||||
public KeyboardKeysProperty PushToTalkMicrophoneHotkey { get; set; }
|
||||
|
||||
[JsonPropertyName("push_to_reverse_enabled")]
|
||||
public BoolProperty PushToReverseEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("mute_camera_hotkey")]
|
||||
public KeyboardKeysProperty MuteCameraHotkey { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user