[frameworks/kconfig] /: Revert "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 f77a5ba31f458c0800a74587615289cd6b763030 by Nate Graham.
Committed on 23/07/2026 at 22:31.
Pushed by ngraham into branch 'master'.

Revert "Add F11 as a default shortcut for "full screen" action"

This reverts commit 9f6d086f3ce8832ebe69315ddfec821a692af5a2.

Unfortunately this caused conflicts in apps with their own hand-made
"Full screen" actions or that had the standard one but used F11 for
something else. We can't break them.

M  +1    -1    autotests/kstandardshortcuttest.cpp
M  +1    -1    src/gui/kstandardshortcut.cpp

https://invent.kde.org/frameworks/kconfig/-/commit/f77a5ba31f458c0800a74587615289cd6b763030

diff --git a/autotests/kstandardshortcuttest.cpp b/autotests/kstandardshortcuttest.cpp
index fe5159e8..d4519889 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; F11"));
+    QCOMPARE(QKeySequence::listToString(KStandardShortcut::hardcodedDefaultShortcut(KStandardShortcut::FullScreen)), QLatin1String("Ctrl+Shift+F"));
     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 c818189f..f2d59894 100644
--- a/src/gui/kstandardshortcut.cpp
+++ b/src/gui/kstandardshortcut.cpp
@@ -293,7 +293,7 @@ static KStandardShortcutInfo g_infoStandardShortcut[] = {
 #else
      CTRLSHIFT(F),
 #endif
-     Qt::Key_F11,
+     0,
      QList<QKeySequence>(),
      false,
      Category::View},
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.