]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Skip splitter in Tab order
authorFelix Ernst <felixernst@zohomail.eu>
Mon, 4 Nov 2024 01:06:29 +0000 (02:06 +0100)
committerFelix Ernst <felixernst@kde.org>
Wed, 6 Nov 2024 16:34:56 +0000 (16:34 +0000)
When moving through Dolphin by repeatedly pressing the Tab key,
there is one seemingly invisible object that catches keyboard
focus. On a default toolbar it receives keyboard focus between the
"Details View Mode" button and the first button of the location
bar. That object is the splitter of the location bar itself, which
never requires manipulation by keyboard. This commit skips this
object by setting its focusProxy to the primaryUrlNavigator()
instead.

src/dolphinnavigatorswidgetaction.cpp

index f45589dbb26608232a986de0be7c28e5685b9f9b..36217ed095a8df4966f23560cd3f40f8e7e2ad74 100644 (file)
@@ -34,6 +34,7 @@ DolphinNavigatorsWidgetAction::DolphinNavigatorsWidgetAction(QWidget *parent)
     m_splitter->setChildrenCollapsible(false);
 
     m_splitter->addWidget(createNavigatorWidget(Primary));
+    m_splitter->setFocusProxy(primaryUrlNavigator());
 
     m_adjustSpacingTimer->setInterval(100);
     m_adjustSpacingTimer->setSingleShot(true);