So, in order for the user to be able to use a keyboard and TAB through the edges and nodes we have creates this clever workaround:
We create invisible buttons for every node and every edge and when the user TABS he tabs through the buttons
When the user presses on the button, we trigger the press on the node/edge (simple enough)
However, the problem is when the user TABS on a button, basically focused on it and we need to show some form of focus styling on that node/edge. What we did is we simulated a mouse hover event on that node/edge and it works.
It does have one huge limitation though: When the user moves the mouse, that hover simulation is gone. Can you give some pointers on how to achieve some form of styling on “focus” on a node/edge?
Ok, but in your solution, @walter, you don’t solve our dilemma. You select the element. We use the selection for something else, so selection is not a solution for us. And neither is highlight - which we also use for something else
That was just an example to make it more obvious what is going on. I don’t know what mouse hover behavior you have implemented – but that code is what I would call instead of calling Diagram.select and CommandHandler.scrollToPart. Well, you probably want to call the latter anyway.