]> cloud.milkyroute.net Git - dolphin.git/commit
Have "Replace Location" toggle focus of the view
authorFelix Ernst <felixernst@zohomail.eu>
Mon, 28 Oct 2024 02:22:05 +0000 (03:22 +0100)
committerMéven Car <meven@kde.org>
Thu, 31 Oct 2024 16:28:02 +0000 (16:28 +0000)
commitf6d90c92b9c3f53c57313931fd8b92e9fcd44d1c
treed0ced9295e5e1ad6df43426cfa1ce5b38d538c08
parent25f7aba43d0f4ca38167dd686ae0efd8c89cc5d4
Have "Replace Location" toggle focus of the view

The "Replace Location" action moves focus to the location bar and
selects the full path there so it can easily be replaced with a
different path.

When the full path is already selected, triggering "Replace
Location" will toggle the editable state of the location bar.
This commit makes it, that this also moves the focus to the view.
This way, pressing Ctrl+L multiple times will switch back and forth
between focusing and selecting the location bar path and focusing
the view. This seems more sensible than only partially resetting
the state when the "Replace Location" keyboard shortcut is pressed
twice.
src/dolphinmainwindow.cpp