What event will be triggered for undo, redo?

HI,
is there any specific event that gets triggered when we do undo, redo actions only?

Thanks,
Chandi

1 Like

Element.changed get triggered but this is of more general event that gets triggered for almost many actions. I’m looking for specific event for undo, redo.
Is there any specific event which triggers wen we do undo redo.

To track the events fired, I usually open the Chrome devtools and then place a logpoint inside the EventBus#fire method. You can do the same and share with us the result.

When you undo action , events ending with “revert” and “reverted” are triggered , I use “commandStack.reverted” phrase to catch undo events , in general. Apart from this , at the following , I wrote some events that are triggered during CREATE and DELETE actions.
CREATE UNDO EVENTS
commandStack.lane.updateRefs.revert
commandStack.revert
commandStack.lane.updateRefs.reverted
commandStack.reverted
commandStack.elements.create.revert
commandStack.elements.create.reverted
commandStack.shape.create.revert

DELETE UNDO EVENTS
“commandStack.shape.delete.revert”
“commandStack.shape.delete.reverted”
“commandStack.id.updateClaim.revert”
“commandStack.id.updateClaim.reverted”
“commandStack.elements.delete.revert”
“commandStack.elements.delete.reverted”