mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 13:02:38 +02:00
GUI: Accept Ctrl-D as a shortcut to close the RPC console
This commit is contained in:
parent
7bcaa0ef4c
commit
7022a6ca05
@ -40,6 +40,7 @@
|
||||
#include <QScreen>
|
||||
#include <QScrollBar>
|
||||
#include <QSettings>
|
||||
#include <QShortcut>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QStyledItemDelegate>
|
||||
@ -582,6 +583,8 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
|
||||
|
||||
GUIUtil::handleCloseWindowShortcut(this);
|
||||
|
||||
QObject::connect(new QShortcut(QKeySequence(QStringLiteral("Ctrl+D")), ui->tab_console), &QShortcut::activated, this, &QWidget::close);
|
||||
|
||||
updateWindowTitle();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user