summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorronso0 <ronso0@mixxx.org>2020-05-03 21:06:44 +0200
committerronso0 <ronso0@mixxx.org>2020-05-06 15:09:52 +0200
commitac40a458ff19cf137797c65a0d0f04d1e978e37b (patch)
treebab8d7beff00560663d83ce9fc4444d7cb5b0631
parent38fa12c4403409227e2a2dda68648ed3a9a3a57b (diff)
use F11 as additional fullscreen shortcut
1) to restore previous Linux shortcut 2) to have it as additional shortcut on OS where QKeySequence::FullScreen is not set (for example Ubuntu Studio 20.04 as of 2020-05-04)
-rw-r--r--src/widget/wmainmenubar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widget/wmainmenubar.cpp b/src/widget/wmainmenubar.cpp
index 9be107a27c..4014382b48 100644
--- a/src/widget/wmainmenubar.cpp
+++ b/src/widget/wmainmenubar.cpp
@@ -265,7 +265,11 @@ void WMainMenuBar::initialize() {
QString fullScreenTitle = tr("&Full Screen");
QString fullScreenText = tr("Display Mixxx using the full screen");
auto pViewFullScreen = new QAction(fullScreenTitle, this);
- pViewFullScreen->setShortcut(QKeySequence(QKeySequence::FullScreen));
+ QList<QKeySequence> shortcuts;
+ shortcuts << QKeySequence::FullScreen;
+ shortcuts << QKeySequence("F11");
+
+ pViewFullScreen->setShortcuts(shortcuts);
pViewFullScreen->setShortcutContext(Qt::ApplicationShortcut);
pViewFullScreen->setCheckable(true);
pViewFullScreen->setChecked(false);