undo / redo disabled when cursor is pressed