瀏覽代碼

UI: Implement exit on CTRL + Q for linux

Fixes #3106
Programatic 5 年之前
父節點
當前提交
f79737d479
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      UI/window-basic-main.cpp

+ 4 - 0
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);