Undo/Redo in dialogs

 From:  Max Smirnov (SMIRNOV)
7286.2 In reply to 7286.1 
Try this
code:
moi.command.registerCommandSpecificShortcutKey( "Ctrl+Z" );
moi.ui.commandDialog.waitForEvent();
e  = moi.ui.commandDialog.event;
if ( e == 'Ctrl+Z' ) DoSomething();