- Code: Select all
def on_modified(self, view):
command = view.command_history(0)
if command == 'my_command':
But the Undo and Redo commands don't appear in command_history(), so how can I know is it a undo or redo command in on_modified?
Thanks for helping.