dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
480 stars 44 forks source link

Change default selection keys #142

Open hendrikbl opened 6 months ago

hendrikbl commented 6 months ago

An option do change the default keys for multiselection (shift) and box selection (ctrl) would be awesome. Specifically i want to use shift + drag for box selection and ctrl + click for adding/removing nodes to/from selection. THe current behaviour is the other way round.

I achieved this behaviour (almost) by using custom keyboard and mouse event handlers, but it would be way easier to make this configurable via config.

The same goes for the positionFixedByClickWithAltKey option.