From: Eric Armbruster Date: Sat, 11 Nov 2023 09:24:01 +0000 (+0000) Subject: Set show preview shortcut to F12 X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/86c59879ec8c88669df792312164412ebcc51bda Set show preview shortcut to F12 To be consistent with kio open/save dialogs. BUG: 172967 --- 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"));