We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f045f98 commit a56a104Copy full SHA for a56a104
src/qt/rpcconsole.cpp
@@ -14,6 +14,7 @@
14
#include <netbase.h>
15
#include <qt/bantablemodel.h>
16
#include <qt/clientmodel.h>
17
+#include <qt/guiutil.h>
18
#include <qt/peertablesortproxy.h>
19
#include <qt/platformstyle.h>
20
#include <qt/walletmodel.h>
@@ -910,8 +911,7 @@ void RPCConsole::clear(bool keep_prompt)
910
911
912
void RPCConsole::keyPressEvent(QKeyEvent *event)
913
{
- if(windowType() != Qt::Widget && event->key() == Qt::Key_Escape)
914
- {
+ if (windowType() != Qt::Widget && GUIUtil::IsEscapeOrBack(event->key())) {
915
close();
916
}
917
0 commit comments