mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #5931
Igor Kushnir (1): fix(ui): quit qTox on Ctrl+Q when "Close to tray" is enabled
This commit is contained in:
commit
25943be3c2
|
@ -334,7 +334,8 @@ void Widget::init()
|
|||
// initial request with the sanitized name so there is no work for us to do
|
||||
|
||||
// keyboard shortcuts
|
||||
new QShortcut(Qt::CTRL + Qt::Key_Q, this, SLOT(close()));
|
||||
auto* const quitShortcut = new QShortcut(Qt::CTRL + Qt::Key_Q, this);
|
||||
connect(quitShortcut, &QShortcut::activated, qApp, &QApplication::quit);
|
||||
new QShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_Tab, this, SLOT(previousContact()));
|
||||
new QShortcut(Qt::CTRL + Qt::Key_Tab, this, SLOT(nextContact()));
|
||||
new QShortcut(Qt::CTRL + Qt::Key_PageUp, this, SLOT(previousContact()));
|
||||
|
|
Loading…
Reference in New Issue
Block a user