[frameworks/kconfig] /: Add F11 as a default shortcut for "full screen" action
Nate Graham <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 9f6d086f3ce8832ebe69315ddfec821a692af5a2 by Nate Graham, on behalf of Ahmad Mostafa.
Committed on 22/07/2026 at 17:21.
Pushed by ngraham into branch 'master'.
Add F11 as a default shortcut for "full screen" action
The reasoning behind this change is that F11 as full screen is
popular and widespread, so it would make sense to have it work
by default for users that expect it to, especially since F11
doesn't conflict with anything else nor does it have any other
significant uses to my knowledge.
Firefox and Chromium also bind it to full screen, so do some
KDE apps, like Konsole, for example.
M +1 -1 autotests/kstandardshortcuttest.cpp
M +1 -1 src/gui/kstandardshortcut.cpp
https://invent.kde.org/frameworks/kconfig/-/commit/9f6d086f3ce8832ebe69315ddfec821a692af5a2
diff --git a/autotests/kstandardshortcuttest.cpp b/autotests/kstandardshortcuttest.cpp
index d4519889..fe5159e8 100644
--- a/autotests/kstandardshortcuttest.cpp
+++ b/autotests/kstandardshortcuttest.cpp
@@ -22,7 +22,7 @@ Q_CONSTRUCTOR_FUNCTION(initLocale)
void KStandardShortcutTest::testShortcutDefault()
{
- QCOMPARE(QKeySequence::listToString(KStandardShortcut::hardcodedDefaultShortcut(KStandardShortcut::FullScreen)), QLatin1String("Ctrl+Shift+F"));
+ QCOMPARE(QKeySequence::listToString(KStandardShortcut::hardcodedDefaultShortcut(KStandardShortcut::FullScreen)), QLatin1String("Ctrl+Shift+F; F11"));
QCOMPARE(QKeySequence::listToString(KStandardShortcut::hardcodedDefaultShortcut(KStandardShortcut::BeginningOfLine)), QLatin1String("Home"));
QCOMPARE(QKeySequence::listToString(KStandardShortcut::hardcodedDefaultShortcut(KStandardShortcut::EndOfLine)), QLatin1String("End"));
QCOMPARE(QKeySequence::listToString(KStandardShortcut::hardcodedDefaultShortcut(KStandardShortcut::Home)), QLatin1String("Alt+Home; Home Page"));
diff --git a/src/gui/kstandardshortcut.cpp b/src/gui/kstandardshortcut.cpp
index f2d59894..c818189f 100644
--- a/src/gui/kstandardshortcut.cpp
+++ b/src/gui/kstandardshortcut.cpp
@@ -293,7 +293,7 @@ static KStandardShortcutInfo g_infoStandardShortcut[] = {
#else
CTRLSHIFT(F),
#endif
- 0,
+ Qt::Key_F11,
QList<QKeySequence>(),
false,
Category::View},