mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +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:
parent
c1b2605243
commit
0dac2ea9e9
|
@ -1800,7 +1800,7 @@ void DolphinMainWindow::setupActions()
|
||||||
replaceLocation->setWhatsThis(xi18nc("@info:whatsthis",
|
replaceLocation->setWhatsThis(xi18nc("@info:whatsthis",
|
||||||
"This switches to editing the location and selects it "
|
"This switches to editing the location and selects it "
|
||||||
"so you can quickly enter a different location."));
|
"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);
|
connect(replaceLocation, &QAction::triggered, this, &DolphinMainWindow::replaceLocation);
|
||||||
|
|
||||||
// setup 'Go' menu
|
// setup 'Go' menu
|
||||||
|
|
Loading…
Reference in a new issue