UI: Properly cancel dragging on Esc & right-click #104838

Closed
Julian Eisel wants to merge 2 commits from JulianEisel:temp-drag-drop-cancel into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

2 Commits

Author SHA1 Message Date
Julian Eisel a4b2f595f5 Merge branch 'main' into temp-drag-drop-cancel 2023-02-22 16:51:01 +01:00
Julian Eisel 1d1f882b9e UI: Properly cancel dragging on Esc & right-click
Previously Escape would cancel the dragging, but still pass on the event
to other handlers, which could trigger other behavior. For example
cancelling dragging a file in a file browser dialog would cancel the
file browser operation and close the window. Right-click didn't cancel
anything even though we usually use both Escape and right-click as a way
to cancel the operation.

Now both Escape and right-click both cancel the dragging and the event
is not passed on further.
2023-02-16 19:08:22 +01:00