diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2023-06-29 19:11:55 +0200 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2023-06-29 19:12:07 +0200 |
commit | 7b948e6ec9cb67be5682b3759fbb69c4c05aa8f1 (patch) | |
tree | 74eac21ac69cc9ad5abdfa97d9279d3da9c36bf3 /src/frontend | |
parent | 52d6265b5840b0d36e65040ac33b1d6476b4b8b9 (diff) |
Assign Qt standard Quit keyboard shortcut
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 1 |
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"); |