In this situation, one is trying to avoid a dialog (cancel out of it). So I don't think undo would help here :p
In this situation, one is trying to avoid a dialog (cancel out of it). So I don't think undo would help here :p