From 73fd4c5d33c7f4c10c96de47e83ee509a197d482 Mon Sep 17 00:00:00 2001 From: Gabriel Lima <44784408+gablm@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:36:46 +0000 Subject: [PATCH] Fix validity check for new shortcut combinations --- .../XAMLs/MainApp/Pages/Dialogs/KeyboardShortcuts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/KeyboardShortcuts.cs b/CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/KeyboardShortcuts.cs index 755b34b2c..8518ca1c8 100644 --- a/CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/KeyboardShortcuts.cs +++ b/CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/KeyboardShortcuts.cs @@ -524,7 +524,7 @@ public static void ResetKeyboardShortcuts() private static bool ValidKeyCombination(KbShortcut shortcut) { - return KbShortcutList.Any(x => x.Value.Key == shortcut.Key && x.Value.Modifier == shortcut.Modifier) + return !KbShortcutList.Any(x => x.Value.Key == shortcut.Key && x.Value.Modifier == shortcut.Modifier) && !ForbiddenShortcutList.Any(x => x.Key == shortcut.Key && x.Modifier == shortcut.Modifier); } #endregion