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
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.
Resolved by making long-presses open context menus directly instead of issuing a right-click.