diff options
author | Miguel Herranz <miguel@ipglider.org> | 2019-04-07 21:33:35 +0200 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2020-02-05 07:13:01 +0100 |
commit | f5a3a5b9ab362c58fa424261f313aa9cf46d2a98 (patch) | |
tree | 37537dda08fca62cb82891eb740b4be5595ef9b2 /src/qt/askpassphrasedialog.cpp | |
parent | a064e005fa6b2b9f2c7f01e45a04a4d740f4605d (diff) |
gui: Add close window shortcut
CMD+W/CTRL+W is the standard shortcut to close a window without
exiting the program.
Diffstat (limited to 'src/qt/askpassphrasedialog.cpp')
-rw-r--r-- | src/qt/askpassphrasedialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/askpassphrasedialog.cpp b/src/qt/askpassphrasedialog.cpp index 67e7704551..3d1963b6e6 100644 --- a/src/qt/askpassphrasedialog.cpp +++ b/src/qt/askpassphrasedialog.cpp @@ -10,6 +10,7 @@ #include <qt/forms/ui_askpassphrasedialog.h> #include <qt/guiconstants.h> +#include <qt/guiutil.h> #include <qt/walletmodel.h> #include <support/allocators/secure.h> @@ -75,6 +76,8 @@ AskPassphraseDialog::AskPassphraseDialog(Mode _mode, QWidget *parent, SecureStri connect(ui->passEdit1, &QLineEdit::textChanged, this, &AskPassphraseDialog::textChanged); connect(ui->passEdit2, &QLineEdit::textChanged, this, &AskPassphraseDialog::textChanged); connect(ui->passEdit3, &QLineEdit::textChanged, this, &AskPassphraseDialog::textChanged); + + GUIUtil::handleCloseWindowShortcut(this); } AskPassphraseDialog::~AskPassphraseDialog() |