summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2020-05-07 10:05:34 +0200
committerGitHub <noreply@github.com>2020-05-07 10:05:34 +0200
commit30b16b70c2328258b63466e661b88dcb5c825767 (patch)
tree3579cd326666a469ee756623807c12788db7e592 /src
parent185e7a4b774460b8876a2e9064d41619f8ba4149 (diff)
parentac40a458ff19cf137797c65a0d0f04d1e978e37b (diff)
Merge pull request #2735 from ronso0/fullscreen-hotkey-linux
restore/add F11 to toggle fullscreen
Diffstat (limited to 'src')
-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);