Undo support for CTRL+X