Merge branch 'dev/vanzue/zoomit-hotkey' of https://github.com/microsoft/PowerToys into dev/vanzue/zoomit-hotkey

This commit is contained in:
Niels Laute
2025-12-18 14:10:57 +01:00

View File

@@ -358,12 +358,11 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
return null;
}
// XOR with Shift: if Shift is present, remove it; if absent, add it
return new HotkeySettings(
baseKey.Win,
baseKey.Ctrl,
baseKey.Alt,
!baseKey.Shift, // XOR with Shift
!baseKey.Shift, // Toggle Shift: if Shift is present, remove it; if absent, add it
baseKey.Code);
}
}