Wiring up the “ObjectSingleClicked” event to detect clicks on my nodes and links and route to my handler:
.addDiagramListener("ObjectSingleClicked", (e) => ...
I’m seeing an issue within my handler on a Mac.
What I want to detect is a control or a command/meta click. My handler does get called when I command click or regular click. When I command click, if inspect the values within theDiagram.lastInput while inside the handler, I see that:
- the originating MouseEvent’s metaKey is false, as is its ctrlKey.
- lastInput’s values of .meta and .control are false
- lastInput’s count of modifiers is 0
Should I be seeing other values when command-clicking on a Mac? How should I go about detecting a command click on a Part?
Thanks,
KW