aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-12-03 01:03:11 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-12-03 01:03:30 +0200
commita56a1049380b0acb532681484fbb675c3b2ff365 (patch)
treefe0b51c995cdd154b899bd6e8c06270ce5e3ad29 /src/qt/rpcconsole.cpp
parentf045f987171c3960c12813538b9f19a54a50b4f8 (diff)
downloadbitcoin-a56a1049380b0acb532681484fbb675c3b2ff365.tar.xz
qt: Handle Android back key in the Node window
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 6bcdcc4c29..1c19fb4b27 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -14,6 +14,7 @@
#include <netbase.h>
#include <qt/bantablemodel.h>
#include <qt/clientmodel.h>
+#include <qt/guiutil.h>
#include <qt/peertablesortproxy.h>
#include <qt/platformstyle.h>
#include <qt/walletmodel.h>
@@ -910,8 +911,7 @@ void RPCConsole::clear(bool keep_prompt)
void RPCConsole::keyPressEvent(QKeyEvent *event)
{
- if(windowType() != Qt::Widget && event->key() == Qt::Key_Escape)
- {
+ if (windowType() != Qt::Widget && GUIUtil::IsEscapeOrBack(event->key())) {
close();
}
}