mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Remove new tab shortcut Ctrl+Shift+N
Since https://commits.kde.org/kconfig/782e43f8076e5f4a10111a6b4d2cc6b1741c9798 Ctrl+Shift+N is the standard shortcut for creating a new folder which leads to a shortcut conflict when this key combination is invoked in Dolphin. "New Tab" already has the more popular shortcut Ctrl+T assigned to it, so Ctrl+Shift+N can simply be removed.
This commit is contained in:
parent
4199e7ef20
commit
6271ee8a5a
|
@ -1574,7 +1574,7 @@ void DolphinMainWindow::setupActions()
|
||||||
"<emphasis>Tab</emphasis> with the current location and view.<nl/>"
|
"<emphasis>Tab</emphasis> with the current location and view.<nl/>"
|
||||||
"A tab is an additional view within this window. "
|
"A tab is an additional view within this window. "
|
||||||
"You can drag and drop items between tabs."));
|
"You can drag and drop items between tabs."));
|
||||||
actionCollection()->setDefaultShortcuts(newTab, {Qt::CTRL | Qt::Key_T, Qt::CTRL | Qt::SHIFT | Qt::Key_N});
|
actionCollection()->setDefaultShortcut(newTab, Qt::CTRL | Qt::Key_T);
|
||||||
connect(newTab, &QAction::triggered, this, &DolphinMainWindow::openNewActivatedTab);
|
connect(newTab, &QAction::triggered, this, &DolphinMainWindow::openNewActivatedTab);
|
||||||
|
|
||||||
QAction *addToPlaces = actionCollection()->addAction(QStringLiteral("add_to_places"));
|
QAction *addToPlaces = actionCollection()->addAction(QStringLiteral("add_to_places"));
|
||||||
|
|
Loading…
Reference in a new issue