You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it's a similar issue, when I click on an element, such as a task, it does not trigger the 'element.mousedown'
event at all, with or without modifier keys pressed down
I was able to achieve a workaround by listening for the ALT key instead:
modeler.on('element.click', (event) => {
const element = event.element;
if (event.originalEvent.altKey) {
// do something
} else {
// do something else
}
});
The above works.. but I was really hoping to use the CMD/CTRL key instead of the ALT key.
Do you know why the above is not working with the CMD/CTRL key? I believe this should work..
Many thanks!!
The text was updated successfully, but these errors were encountered:
I also tried it and found that it does work as you said.
But the problem is that bpmn.js doesn't support such use, and it's hard for me to make changes here.
I'm wondering if you can provide advice here.
I am trying to listen to CTRL-click / CMD-click when you click on an element, such as a task.
I tried
But it appears that for whatever reason, when you CMD/CTRL click on an element, it does not trigger the
'element.click'
event at all.I tried disabling the keyboard bindings but that did not help.
I also tried with
But it's a similar issue, when I click on an element, such as a task, it does not trigger the
'element.mousedown'
event at all, with or without modifier keys pressed down
I was able to achieve a workaround by listening for the ALT key instead:
The above works.. but I was really hoping to use the CMD/CTRL key instead of the ALT key.
Do you know why the above is not working with the CMD/CTRL key? I believe this should work..
Many thanks!!
The text was updated successfully, but these errors were encountered: