mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 13:55:23 -05:00
qt: Handle Android back key in the Node window
This commit is contained in:
parent
f045f98717
commit
a56a104938
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue