-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Description
Is there a best-practices way to disable the shift key behavior?
In my app the brush is enabled only when the user holds shift. I.e. they hold shift and then drag to select nodes in a force layout. This means that event.shiftKey is always true during the brush drag. I understand that this is a feature of the brush, but if possible I would like to disable it for this use case.
I scanned through the code and saw that if I change this line to the following everything works fine:
shifting = false, // Disable `shifting` entirelyBut I wasn't sure how I might hook into this functionality without modifying the source. Any suggestions would be much appreciated. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels