react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

CTRL + SHIFT + J locks everything

Open sinanyaman95 opened this issue 3 years ago • 1 comments

Issue Description

On Chrome, when I click CTRL + SHIFT + J to open developer tools, canvas and model gets locked. I think shift key isn't registered as released, so everything happens as if I am holding shift the entire time:

react-diagrams-issue

Can be replicated here: https://projectstorm.cloud/react-diagrams/iframe.html?id=advanced-techniques--drag-and-drop or any other storybook examples, given that you open it in new tab

EDIT: CTRL + SHIFT + T, CTRL + SHIFT + O also does the same effect

sinanyaman95 avatar Mar 09 '21 12:03 sinanyaman95

clicking shift again would release the shift lock. I haven't figured out a solution, but this is a temporary one. The root cause is how Chrome detects key holds. The library detects key release to stop the key holds, and when you do combo keys, the browser would not send the key up event to the js, so the library would be stuck at the multi-select mode.

zacharyzhy avatar Jul 06 '21 21:07 zacharyzhy