Hello!
I need to manage my diagram by hot keys.
Arrows - jump selection from one node to other
Tab - create new child node for selection node
How can I do this using GoJS ?
P.S. I looked at the theme of the forum, but not found a solution.
Current hotkeys do not solve problems.
walter
2
For changing selection via arrow keys, use http://gojs.net/latest/extensions/DrawCommandHandler.js and set the DrawCommandHandler.arrowKeyBehavior property to “select”.
As a demo, try http://gojs.net/latest/extensions/FloorPlanEditor.html and choose Options | Arrow Keys >> Select.
To handle the TAB key, you can override CommandHandler.doKeyDown, as documented in http://gojs.net/latest/intro/commands.html and http://gojs.net/latest/api/symbols/CommandHandler.html . The extensions/DrawCommandHandler.js class already overrides that method to handle the arrow keys.
walter,Thank you very much!
You helped me a lot