Key down (holding) while moving selection


Is it possible to add a listener on key stroke/ key down while moving selection? I want to change the first node’s opacity all the time while holding down a key.

Yes. Customize the diagram’s DraggingTool by overriding the DraggingTool.doKeyDown and doKeyUp methods. Look for a particular key on the Diagram.lastInput.