mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-19 19:34:58 +00:00
enhance: try to cancel switcher first then other popup
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
736991198f
commit
aaf53ac694
1 changed files with 5 additions and 2 deletions
|
@ -264,8 +264,11 @@ namespace SourceGit.Views
|
|||
}
|
||||
else if (e.Key == Key.Escape)
|
||||
{
|
||||
vm.ActivePage.CancelPopup();
|
||||
vm.CancelSwitcher();
|
||||
if (vm.Switcher != null)
|
||||
vm.CancelSwitcher();
|
||||
else
|
||||
vm.ActivePage.CancelPopup();
|
||||
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue