]> cloud.milkyroute.net Git - dolphin.git/commit
kitemlistcontroller: process forward/back buttons when double-clicking
authorWolfgang Müller <wolf@oriole.systems>
Mon, 14 Oct 2024 16:43:28 +0000 (18:43 +0200)
committerMéven Car <meven@kde.org>
Thu, 17 Oct 2024 14:07:49 +0000 (14:07 +0000)
commit819960aed450d9aa40fd42dc42ad7119c88a4802
treef078fe064c8e771be94c84d09cd96d99a93b41ff
parent9eff562cb6067c3e85322382c71482ba94ef643b
kitemlistcontroller: process forward/back buttons when double-clicking

Tapping the forward or back mouse buttons quickly enough makes Dolphin
interpret the action as a double-click of the button in question and
handle it in mouseDoubleClickEvent() instead of its normal button
handler. This means that certain button presses might seem delayed or
"swallowed" when quickly navigating forwards or backwards through the
history.

Since a double-click of the forward or back button is currently
meaningless, fix this by emitting a normal mouseButtonPressed event for
those buttons in the double-click handler and skipping any further event
processing.

Co-authored-by: Felix Ernst <felixernst@zohomail.eu>
CCBUG: 485295
src/kitemviews/kitemlistcontroller.cpp