diff --git a/src/modules/MouseWithoutBorders/App/Class/InputHook.cs b/src/modules/MouseWithoutBorders/App/Class/InputHook.cs index 7adac6b0ac..87a1068cb0 100644 --- a/src/modules/MouseWithoutBorders/App/Class/InputHook.cs +++ b/src/modules/MouseWithoutBorders/App/Class/InputHook.cs @@ -561,6 +561,13 @@ namespace MouseWithoutBorders.Class Common.MainForm.Quit(false, false); }); } + else if (shiftDown || winDown) + { + // The following else cases should work if control and alt modifiers are pressed. The hotkeys should still be captured. + // But if any of the other 2 modifiers (shift or win) are pressed, they hotkeys should not be activated. + // Issue #26597 + return true; + } else if (vkCode == Setting.Values.HotKeySwitchMachine || vkCode == Setting.Values.HotKeySwitchMachine + 1 || vkCode == Setting.Values.HotKeySwitchMachine + 2 ||