Rubberband and Touch selection don't switch layers when all selected objects are in the same (different than current) layer
Migrated from: https://bugs.launchpad.net/inkscape/+bug/168443
Steps to reproduce:
- Create two layers, one Top and one Bottom.
- Lock and hide the Top layer (this might not be necessary).
- Create a bunch of shapes on the bottom layer.
- Make sure that the current layer (shown in the bottom little layer selector) is Bottom.
- Select some of the objects and Shift+PgUp to move them to Top. For convenience, they will disappear since Top is hidden.
- Watch the little bottom layer selector switch to "Top."
- Now, select some more (multiple objects) of the Bottom layer by drag-selection, instead of shift-clicking.
Easier steps:
- Create two layers, a "top" and a "bottom."
- Create two objects in "bottom."
- Select the top layer in the layer dialog box.
- Drag-select the objects in the bottom layer.
What happened?
The layer selector does not switch to Bottom when selecting multiple objects, even though all of the objects are in the same layer (the status bar says so).
What should have happened?
The layer selector switches to the Bottom layer, just as when clicking an object in a different layer.
Currently, Step 8/5, Shift+PgUp doesn't work, because the current layer is still on "Top," even though all the objects selected are on "Bottom."
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (c990a67, 2020-04-09)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Migration info
replicated since 2008
Comment 9 is against this request:
Please, before considering this a bug think that it's only a special case of drag-selecting many objects. I think that the current behavior is correct and I actually take advantage of it for quickly moving objects between layers:
- select the layer you want to move the objects to;
- drag select even a single object;
- ctrl-x -> ctrl-alt-v;
- repeat... The layer remains the target one and you can selectively choose the objects you need to move between all existing in all layers or even move a lot of objects with a single operation. I've moved fast hundreds of (usually small) objects in this way.
I wouldn't add a special handling of a well defined behavior: if you click-select a single object the layer is switched, if you drag select it's not. IMHO, click-selecting and drag-selecting are two different operations, being the second a more general one and this justifies the different results in layer switching.