[graphics/okular] shell: Do not hardcode the fullscreen shorcuts

Sune Vuorela <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4b51aa54fd99202bdb627b7007b73ad8cb67c609 by Sune Vuorela, on behalf of Albert Astals Cid.
Committed on 17/08/2026 at 07:35.
Pushed by sune into branch 'master'.

Do not hardcode the fullscreen shorcuts

M  +1    -1    shell/shell.cpp

https://invent.kde.org/graphics/okular/-/commit/4b51aa54fd99202bdb627b7007b73ad8cb67c609

diff --git a/shell/shell.cpp b/shell/shell.cpp
index 89fbd4f3a..9a3a2dd9c 100644
--- a/shell/shell.cpp
+++ b/shell/shell.cpp
@@ -577,7 +577,7 @@ void Shell::setupActions()
     m_showMenuBarAction = KStandardAction::showMenubar(this, SLOT(slotShowMenubar()), actionCollection());
     m_fullScreenAction = KStandardAction::fullScreen(this, SLOT(slotUpdateFullScreen()), this, actionCollection());
 
-    actionCollection()->setDefaultShortcuts(m_fullScreenAction, {QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_F), QKeySequence(Qt::Key_F11)});
+    actionCollection()->setDefaultShortcuts(m_fullScreenAction, KStandardShortcut::fullScreen() + QList {QKeySequence(Qt::Key_F11)});
 
     m_nextTabAction = actionCollection()->addAction(QStringLiteral("tab-next"));
     m_nextTabAction->setText(i18n("Next Tab"));
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.