Skip to content

Commit

Permalink
Add ability to clear shortcut (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
srwi committed May 19, 2023
1 parent 5687f3f commit 4ab77ce
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions EverythingToolbar/ShortcutSelector.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,16 @@ private void OnKeyPressedReleased(object sender, ShortcutManager.WinKeyEventArgs
default:
if (e.IsDown)
{
Key = e.Key;
Modifiers = TempMods;
if (TempMods == ModifierKeys.None && e.Key == Key.Escape)
{
Key = Key.None;
Modifiers = ModifierKeys.None;
}
else
{
Key = e.Key;
Modifiers = TempMods;
}
}
break;
}
Expand Down

0 comments on commit 4ab77ce

Please sign in to comment.