summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <[email protected]>2025-04-10 22:14:46 +0200
committerQt Cherry-pick Bot <[email protected]>2025-04-17 11:34:30 +0000
commitecff73ccaacba8edef568689ed56b479f0c29c6b (patch)
tree0e91b26a7d8f1c2fe8717c6d3b8a7f6fb3a7b632
parente8d28ae0063282a20f6095a173472bb7da4d5c74 (diff)
Make F11 the fullscreen keyboard shortcut on Gnome (as on KDE & Windows)
This seems to agree with current Gnome documentation. [ChangeLog][Platform Specific Changes][Linux] The fullscreen keyboard shortcut is now F11 on Gnome, not Ctrl-F11. Pick-to: 6.5 Fixes: QTBUG-135854 Change-Id: I8ee0bd34152ce8ef112fd3226d17adc89f2a408e Reviewed-by: Axel Spoerl <[email protected]> Reviewed-by: Liang Qi <[email protected]> (cherry picked from commit 30fd101b558112b8829d3ae63b58e8504bbe9297) Reviewed-by: Qt Cherry-pick Bot <[email protected]> (cherry picked from commit 4f89fbc9a9e6a83c02e7e425a206db4e105df6aa)
-rw-r--r--src/gui/kernel/qplatformtheme.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformtheme.cpp b/src/gui/kernel/qplatformtheme.cpp
index 2f0a16fc29a..6a312f235b7 100644
--- a/src/gui/kernel/qplatformtheme.cpp
+++ b/src/gui/kernel/qplatformtheme.cpp
@@ -331,8 +331,7 @@ const QKeyBinding QPlatformThemePrivate::keyBindings[] = {
{QKeySequence::FullScreen, 1, Qt::META | Qt::CTRL | Qt::Key_F, KB_Mac},
{QKeySequence::FullScreen, 0, Qt::ALT | Qt::Key_Enter, KB_Win},
{QKeySequence::FullScreen, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_F, KB_KDE},
- {QKeySequence::FullScreen, 1, Qt::CTRL | Qt::Key_F11, KB_Gnome},
- {QKeySequence::FullScreen, 1, Qt::Key_F11, KB_Win | KB_KDE},
+ {QKeySequence::FullScreen, 1, Qt::Key_F11, KB_Win | KB_Gnome | KB_KDE},
{QKeySequence::Deselect, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_A, KB_X11},
{QKeySequence::DeleteCompleteLine, 0, Qt::CTRL | Qt::Key_U, KB_X11},
{QKeySequence::Backspace, 1, Qt::Key_Backspace, KB_Mac},