From f79737d47911caff43312431b68d248395ee2f14 Mon Sep 17 00:00:00 2001 From: Programatic Date: Thu, 1 Oct 2020 11:45:46 -0400 Subject: [PATCH] UI: Implement exit on CTRL + Q for linux Fixes #3106 --- UI/window-basic-main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 183422349..a9e91f2aa 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -326,6 +326,10 @@ OBSBasic::OBSBasic(QWidget *parent) renameSource->setShortcut({Qt::Key_F2}); #endif +#ifdef __linux__ + ui->actionE_xit->setShortcut(Qt::CTRL + Qt::Key_Q); +#endif + auto addNudge = [this](const QKeySequence &seq, const char *s) { QAction *nudge = new QAction(ui->preview); nudge->setShortcut(seq);