┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinviewactionhandler.cpp
diff options
context:
space:
mode:
authorEric Armbruster <[email protected]>2023-11-11 09:24:01 +0000
committerMéven Car <[email protected]>2023-11-11 09:24:01 +0000
commit86c59879ec8c88669df792312164412ebcc51bda (patch)
tree87fdd64db248fe48ba44cfd64b2f995a7df1bfc0 /src/views/dolphinviewactionhandler.cpp
parentcf97db70d427e667b50aec7a956158258a90aa25 (diff)
Set show preview shortcut to F12
To be consistent with kio open/save dialogs. BUG: 172967
Diffstat (limited to 'src/views/dolphinviewactionhandler.cpp')
-rw-r--r--src/views/dolphinviewactionhandler.cpp1
1 files changed, 1 insertions, 0 deletions
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.<nl/>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<KToggleAction>(QStringLiteral("folders_first"));