Bug 506042 - Opening context menu via long-press of a layer deselects all other layers
Summary: Opening context menu via long-press of a layer deselects all other layers
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (other bugs)
Version First Reported In: 5.2.9
Platform: Android Android 14.x
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2025-06-23 13:00 UTC by Tiar
Modified: 2025-10-07 02:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.14
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiar 2025-06-23 13:00:09 UTC
SUMMARY
I think the checkboxes were meant to help with selecting multiple layers and doing things to them all at once. But on Android if you check multiple layer and then enter the right-click of the layer (for example to group them all at once), or Cut/Copy/Duplicate or Merge, or toggle visibility etc., all of the other layers get deselected, making the checkboxes moot.

STEPS TO REPRODUCE
1. Select multiple layers on Android using checkboxes.
2. Try to duplicate them using right-click -> Duplicate Layer or Mask action.

OBSERVED RESULT
All layers expect for the one clicked on to get to the right-click menu are deselected, making the action only duplicate the current layer, and the checkboxes useless for this particular action.

EXPECTED RESULT
The layers stay selected (the same way they do on desktop) and the action can be performed on all of them.


NOTE:
Drawpile has checkboxes like this and they work fine. Maybe worth checking out.
They also support selecting and deselecting just by the user dragging a pen over them, while in Krita that would start moving layers on the layer stack.


SOFTWARE/OS VERSIONS
Android: 14.x
Qt Version: 5.x
Krita: 5.2.9
Comment 1 dra.w.p.il.e+bugskde 2025-09-28 22:55:52 UTC
This doesn't actually happen when right-clicking, only when long-pressing.

Krita sets QT_ANDROID_ENABLE_RIGHT_MOUSE_FROM_LONG_PRESS to emulate right-clicks via long-press, which will emit a left click release before issuing the right-click. The left click release is what causes the deselection.
Comment 2 dra.w.p.il.e+bugskde 2025-10-07 02:11:06 UTC
Resolved by making long-presses open context menus directly instead of issuing a right-click.