Posted 5 May 2021, 3:38 am EST
Hi there,
I’m reaching you out as I was trying to implement some extra logic attached to the Undo event from a dragFill event.
I’ve been using this approach to permit the user to fill cells via keyboard shortcuts: https://codesandbox.io/s/lucid-raman-1ydsm?file=/src/index.js:1488-1610 (this sandbox was provided as example of drag fill shortcut from your support a while ago).
It appears that after the ctrl+Z/cmd+Z keystrokes, the command executes correctly, however there is no way to capture the undo event in any of the SJS Events (GC.Spread.Sheets.Events), e.g. RangeChanged, CellChanged, ClipboardPasted, DragFillBlockCompleted.
I would expect the RangeChanged should trigger as per the undo event of a paste operation/manual drag fill.
Looking forward to hearing from you