]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add alternate shortcut for replaceLocation action
authorAmol Godbole <amolagodbole@gmail.com>
Thu, 3 Aug 2023 11:00:51 +0000 (11:00 +0000)
committerMéven Car <meven.car@kdemail.net>
Thu, 3 Aug 2023 11:00:51 +0000 (11:00 +0000)
Alt + D is a common shortcut for replacing location. Add this as an alternate shortcut.

BUG: 468445

src/dolphinmainwindow.cpp

index 2baaa1198c9789cad1d2cd8dda2687266ac3834c..e6a025ed66a4dfb8bb4c1319d81911784a0152be 100644 (file)
@@ -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