From 0dac2ea9e94fc4c3843476f6c4da44a6596619d9 Mon Sep 17 00:00:00 2001 From: Amol Godbole Date: Thu, 3 Aug 2023 11:00:51 +0000 Subject: [PATCH] Add alternate shortcut for replaceLocation action Alt + D is a common shortcut for replacing location. Add this as an alternate shortcut. BUG: 468445 --- src/dolphinmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 2baaa1198c..e6a025ed66 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1800,7 +1800,7 @@ void DolphinMainWindow::setupActions() replaceLocation->setWhatsThis(xi18nc("@info:whatsthis", "This switches to editing the location and selects it " "so you can quickly enter a different location.")); - actionCollection()->setDefaultShortcut(replaceLocation, Qt::CTRL | Qt::Key_L); + actionCollection()->setDefaultShortcuts(replaceLocation, {Qt::CTRL | Qt::Key_L, Qt::ALT | Qt::Key_D}); connect(replaceLocation, &QAction::triggered, this, &DolphinMainWindow::replaceLocation); // setup 'Go' menu