Repository: microsoft/PowerToys
File: src/modules/videoconference/VideoConferenceModule/VideoConferenceModule.cpp (C++)

Code before:
                    else if (microphoneIsMuted)
                    {
                        reverseVirtualCameraMuteState();
                    }
                }
                else
                {
                    // if the camera is not in use, we just mute/unmute the mic
                    reverseMicrophoneMute();
                }
                return 1;
            }
            else if (isHotkeyPressed(kbd->vkCode, settings.microphoneMuteHotkey))
            {
                reverseMicrophoneMute();
                return 1;
            }
            else if (isHotkeyPressed(kbd->vkCode, settings.microphonePushToTalkHotkey) && !pushToTalkPressed)
            {
                if (settings.pushToReverseEnabled || getMicrophoneMuteState())
                {
                    reverseMicrophoneMute();
                }
                pushToTalkPressed = true;
                return 1;
            }
            else if (isHotkeyPressed(kbd->vkCode, settings.cameraMuteHotkey))
            {
                reverseVirtualCameraMuteState();
                return 1;
            }
            break;
        case WM_KEYUP:
            if (pushToTalkPressed && (kbd->vkCode == settings.microphonePushToTalkHotkey.get_code()))
            {
                reverseMicrophoneMute();
                pushToTalkPressed = false;
                return 1;
            }
        }
    }

    return CallNextHookEx(hook_handle, nCode, wParam, lParam);
}

void VideoConferenceModule::onGeneralSettingsChanged()
{
    auto settings = PTSettingsHelper::load_general_settings();
    bool enabled = false;
    try
    {

Review comment (suggestion):
We must always consume hotkey press, otherwise, it'll be propagated to the system.

```suggestion
            else if (isHotkeyPressed(kbd->vkCode, settings.microphonePushToTalkHotkey))
            {
                if (!pushToTalkPressed)
                {
                    if (settings.pushToReverseEnabled || getMicrophoneMuteState())
                    {
                        reverseMicrophoneMute();
                    }
                    pushToTalkPressed = true;
                }
                return 1;
            }
```

Code after:
                    else if (microphoneIsMuted)
                    {
                        reverseVirtualCameraMuteState();
                    }
                }
                else
                {
                    // if the camera is not in use, we just mute/unmute the mic
                    reverseMicrophoneMute();
                }
                return 1;
            }
            else if (isHotkeyPressed(kbd->vkCode, settings.microphoneMuteHotkey))
            {
                reverseMicrophoneMute();
                return 1;
            }
            else if (isHotkeyPressed(kbd->vkCode, settings.microphonePushToTalkHotkey))
            {
                if (!pushToTalkPressed)
                {
                    if (settings.pushToReverseEnabled || getMicrophoneMuteState())
                    {
                        reverseMicrophoneMute();
                    }
                    pushToTalkPressed = true;
                }
                return 1;
            }
            else if (isHotkeyPressed(kbd->vkCode, settings.cameraMuteHotkey))
            {
                reverseVirtualCameraMuteState();
                return 1;
            }
            break;
        case WM_KEYUP:
            if (pushToTalkPressed && (kbd->vkCode == settings.microphonePushToTalkHotkey.get_code()))
            {
                reverseMicrophoneMute();
                pushToTalkPressed = false;
                return 1;
            }
        }
    }

    return CallNextHookEx(hook_handle, nCode, wParam, lParam);
}

void VideoConferenceModule::onGeneralSettingsChanged()
{
    auto settings = PTSettingsHelper::load_general_settings();