mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
feature: handle ESC
key to clear search in Welcome page
This commit is contained in:
parent
729e0d6cc8
commit
c3f2c5836a
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,12 @@ namespace SourceGit.Views
|
|||
(!OperatingSystem.IsMacOS() && e.KeyModifiers.HasFlag(KeyModifiers.Control))))
|
||||
{
|
||||
SearchBox.Focus();
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.Escape)
|
||||
{
|
||||
ViewModels.Welcome.Instance.ClearSearchFilter();
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue