mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix IsActionContextEvent logic
This commit is contained in:
parent
28bd07d28b
commit
64cf1ed130
1 changed files with 3 additions and 3 deletions
|
|
@ -752,9 +752,9 @@ internal static class HotKeyMapper
|
|||
private static bool IsActionContextEvent(KeyBinding existingBinding, HotkeyModel hotkey)
|
||||
{
|
||||
// Check if this hotkey is a hotkey for ActionContext events
|
||||
if (!_actionContextHotkeyEvents.ContainsKey(hotkey) &&
|
||||
_actionContextHotkeyEvents[hotkey].Command == existingBinding.Command &&
|
||||
_actionContextHotkeyEvents[hotkey].Parameter == existingBinding.CommandParameter)
|
||||
if (_actionContextHotkeyEvents.TryGetValue(hotkey, out var value) &&
|
||||
value.Command == existingBinding.Command &&
|
||||
value.Parameter == existingBinding.CommandParameter)
|
||||
{
|
||||
// If the hotkey is not for ActionContext events, return false
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue