Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift-Click select #101

Open
severila opened this issue Jan 17, 2019 · 3 comments
Open

Shift-Click select #101

severila opened this issue Jan 17, 2019 · 3 comments

Comments

@severila
Copy link

Hi,

you currently support CTRL+Click for adding a node to the selection. I also need SHIFT+Click for selection which is a very common pattern.

The desired behaviour for shift-click is:

  1. If there is no node selected, select that node
  2. Keep track of the node that was last selected
  3. When shift-clicking on a node, select all elements between last selected node and the node that was selected
  4. If the last selected and newly selected node do not belong to the same parent node there are several options. Default should probably be to clear the previous selection and select the new node. Other option is to select all nodes in-between that are at the same depth or even including the parent nodes.

Since the node event currently does not emit the original mouse event I have no way of implementing this client-side.

Do you think thats possible to add?

@amsik
Copy link
Owner

amsik commented Jan 17, 2019

Hi. Yes, it is possible to add. But I need some time for that

@severila
Copy link
Author

Okay, great, thank you! Can you give me a rough estimate when you might find time for this? Just a range (is it couple of days or weeks or months)

@severila
Copy link
Author

Hi, do you have any update on this? Or could you point me in the right direction to do it myself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants