mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-28 23:54:59 +00:00
feature<PopupPanel>: add hotkey ESC to close current popup panel
This commit is contained in:
parent
b134876f8b
commit
468d0e6f25
5 changed files with 20 additions and 0 deletions
|
@ -51,6 +51,10 @@ namespace SourceGit.Views.Widgets {
|
|||
Dispatcher.Invoke(() => txtMsg.Text = message);
|
||||
}
|
||||
|
||||
public void CancelDirectly() {
|
||||
if (Visibility == Visibility.Visible) Cancel(this, null);
|
||||
}
|
||||
|
||||
public void Close() {
|
||||
if (Visibility != Visibility.Visible) return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue