┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForest ix <[email protected]>2023-02-05 18:38:55 -0800
committerMéven Car <[email protected]>2023-02-09 11:17:26 +0000
commitc57c5384fcab92a1ba0d8fd87321ce7cb148ca02 (patch)
tree1f46e701359bb653b6c74eae6ade940156fbea34
parent34e0a5488e3c2d1ed0ff291549934b7490474b5c (diff)
Reveal the Backspace shortcut in the UI
Since the Back action already has two standard shortcuts, a third one appended to the list will be invisible in the UI, which shows only the first two. This leaves users unable to reassign it. We therefore make it the first shortcut in the list, so that the hidden third entry will be the dedicated Back button, which users are far less likely to want reassigned. BUG: 371130
-rw-r--r--src/dolphinmainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 1804f3459..4740b66e9 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1786,7 +1786,8 @@ void DolphinMainWindow::setupActions()
actionCollection()->addAction(m_backAction->objectName(), m_backAction);
auto backShortcuts = m_backAction->shortcuts();
- backShortcuts.append(QKeySequence(Qt::Key_Backspace));
+ // Prepend this shortcut, to avoid being hidden by the two-slot UI (#371130)
+ backShortcuts.prepend(QKeySequence(Qt::Key_Backspace));
actionCollection()->setDefaultShortcuts(m_backAction, backShortcuts);
DolphinRecentTabsMenu *recentTabsMenu = new DolphinRecentTabsMenu(this);