drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Ability to select objects that are under the top one

Open rezanid opened this issue 4 years ago • 13 comments

  • [X] I agree to follow the Code of Conduct that this project adheres to.
  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe. When a diagram has several items that are put on top of each other (very common in software diagrams e.g. UML and ArchiMate) it is frustrating to to try to select an object that is not the top one. One has to reshuffle the objects, or move them temporarily just to be able to select and change another one that is under.

Describe the solution you'd like One technique that I have seen some vector drawing software use is switching between objects if the user continues clicking without changing the mouse position. Imagine there are three object on top of each other. Object 1 is on top of 2 and object 2 is on top of 3. When user click on object 1 on a position that is also relevant to object 2 and 3, by default the object 1 is selected. If user clicks another time without moving the mouse pointer, then object 2 is selected and then object 3.

Describe alternatives you've considered Another alternative (though I haven't seen it in another app) is to let user select among different objects, if the user clicks and hold for a few seconds. In other words, in above scenario, when user clicks on object 1 and continues holding the button for a few seconds a context menu could display a list of all the relevant objects for selection. When user hovers the mouse over an object name, it can be highlighted. If user then clicks on the object name, the object will be selected and context menu would disappear.

Additional context I think that the first solution would be easier to implement and having personally worked with it (I wish I remember which app, I guess Microsoft Expression Design) I think it's pretty natural and easy from user perspective.

rezanid avatar Jan 29 '21 10:01 rezanid

Hi,

thanks for the suggestion. You could try to select all descendants (right mouse click or Alt+Shift+d) as some kind of a workaround.

mararad avatar Jan 29 '21 13:01 mararad

Hi @mararad,

Thanks for replying. The shapes that I talk about are not grouped, and I don't find an option to allow me to select descendants when I right-click. Pressing Alt+Shift+D while the top shape is selected does not do anything either.

rezanid avatar Feb 01 '21 06:02 rezanid

The following is an example of multiple shapes stacked over each other. image

In the above case, there is no way to select "Generate filter info" arrow or "Store info in ViewData" arrow. What's funny is that these two shapes are the top most shapes of the entire diagram. This I think, is a bug, but having had the option I originally suggested would have helped workaround this bug as well, because I could easily select my desired shape by clicking multiple times (or selecting from a list).

rezanid avatar Feb 01 '21 06:02 rezanid

Yeah, select descendants won't work in your case. You might want to try tab key but not sure if it suits your needs.

mararad avatar Feb 02 '21 11:02 mararad

@davidjgraph Why was this closed as Completed? I see no resolution, not even a "won't fix". Can you provide some clarity?

@rezanid have you found any new acceptable workarounds? The only thing I have found is to move the top container out of the way so it's no longer "masking" the objects it contains.

This is the default behavior of many container objects from the AWS shape libraries, e.g. Account, Region, VPC, etc.

There is no grouping in my scenario, and I have tried tweaking these objects' properties (container, moveable, etc.) to no avail.

timblaktu avatar Feb 07 '23 17:02 timblaktu

It has zero votes.

davidjgraph avatar Feb 07 '23 17:02 davidjgraph

@timblaktu unfortunately not. I think most people don't think there can be a solution for this annoying problem they just struggle with it and think that's the way it is.

rezanid avatar Feb 08 '23 00:02 rezanid

We really need this feature

rikka0w0 avatar Feb 16 '23 08:02 rikka0w0

Still has no votes...

davidjgraph avatar Feb 16 '23 14:02 davidjgraph

I'd like to vote for this. The workaround is to make the object below hang out to the side so it's selectable but you have to make sure to change the shape while you can still access it. It can get tricky.

519seven avatar Feb 16 '23 16:02 519seven

Try Alt+Click: 4f829b725ec968220f17e58b9ff59e9f

alderg avatar Dec 26 '23 17:12 alderg

Try Alt+Click:

This selects, however, how do I move an object which is behind another object using a mouse? After selecting using Alt + Click, I then have to use the keyboard to move? Thanks! @alderg

sagrawal-code avatar Jan 05 '24 11:01 sagrawal-code

Try Alt+Shift+Drag with the object selected.

alderg avatar Jan 05 '24 13:01 alderg

I'd suggest double click as default instead of Alt+Click. Also this workaround doesn't allow to edit content of selected shape. So, for now its: (Alt+Click to) select, then (Alt+Shift+Mouse to) drag it out, then edit it, then drag it back. Many actions for something simple.

nemomode7 avatar Jul 21 '24 10:07 nemomode7

@nemomode7 Alt+Click and start typing?

alderg avatar Jul 21 '24 14:07 alderg

@nemomode7 Alt+Click and start typing?

Yes, that works for an empty shape. If the shape already had some text in it, text will be lost.

nemomode7 avatar Jul 21 '24 16:07 nemomode7

Alt+Click and Enter?

alderg avatar Jul 21 '24 17:07 alderg