aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2023-06-29 19:11:55 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2023-06-29 19:12:07 +0200
commit7b948e6ec9cb67be5682b3759fbb69c4c05aa8f1 (patch)
tree74eac21ac69cc9ad5abdfa97d9279d3da9c36bf3 /src/frontend/qt_sdl
parent52d6265b5840b0d36e65040ac33b1d6476b4b8b9 (diff)
Assign Qt standard Quit keyboard shortcut
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 33803dd..a7a1b96 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -1492,6 +1492,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
actQuit = menu->addAction("Quit");
connect(actQuit, &QAction::triggered, this, &MainWindow::onQuit);
+ actQuit->setShortcut(QKeySequence(QKeySequence::StandardKey::Quit));
}
{
QMenu* menu = menubar->addMenu("System");