1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-07 10:51:45 +00:00

Add alternate shortcut for replaceLocation action

Alt + D is a common shortcut for replacing location. Add this as an alternate shortcut.

BUG: 468445
This commit is contained in:
Amol Godbole 2023-08-03 11:00:51 +00:00 committed by Méven Car
parent c1b2605243
commit 0dac2ea9e9

View 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