From 86c59879ec8c88669df792312164412ebcc51bda Mon Sep 17 00:00:00 2001 From: Eric Armbruster Date: Sat, 11 Nov 2023 09:24:01 +0000 Subject: [PATCH] Set show preview shortcut to F12 To be consistent with kio open/save dialogs. BUG: 172967 --- src/views/dolphinviewactionhandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index 98cbbdf80..ae01437ba 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -249,6 +249,7 @@ void DolphinViewActionHandler::createActions(SelectionMode::ActionTextHelper *ac "contents.For example the icons of images become scaled " "down versions of the images.")); showPreview->setIcon(QIcon::fromTheme(QStringLiteral("view-preview"))); + m_actionCollection->setDefaultShortcut(showPreview, QKeySequence(Qt::Key_F12)); connect(showPreview, &KToggleAction::triggered, this, &DolphinViewActionHandler::togglePreview); KToggleAction *sortFoldersFirst = m_actionCollection->add(QStringLiteral("folders_first"));