Skip to content

Commit

Permalink
Fix validity check for new shortcut combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
gablm committed Mar 6, 2024
1 parent d21d348 commit 73fd4c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73fd4c5

Please sign in to comment.