]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Remove new tab shortcut Ctrl+Shift+N
authorFelix Ernst <felixernst@zohomail.eu>
Mon, 16 Oct 2023 14:32:24 +0000 (16:32 +0200)
committerFelix Ernst <felixernst@kde.org>
Mon, 16 Oct 2023 15:05:23 +0000 (15:05 +0000)
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.

src/dolphinmainwindow.cpp

index a88e1a594af3207580f73134d71e32692b66bdba..e5fb4efa994924112839d8d8fbe8e5f12d70c322 100644 (file)
@@ -1574,7 +1574,7 @@ void DolphinMainWindow::setupActions()
                                 "<emphasis>Tab</emphasis> with the current location and view.<nl/>"
                                 "A tab is an additional view within this window. "
                                 "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);
 
     QAction *addToPlaces = actionCollection()->addAction(QStringLiteral("add_to_places"));