mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 03:34:59 +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)
|
else if (e.Key == Key.Escape)
|
||||||
{
|
{
|
||||||
vm.ActivePage.CancelPopup();
|
if (vm.Switcher != null)
|
||||||
vm.CancelSwitcher();
|
vm.CancelSwitcher();
|
||||||
|
else
|
||||||
|
vm.ActivePage.CancelPopup();
|
||||||
|
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue