There's a tension between 'editing content' commands and 'change UI' commands when undoing.
Usually you don't want to undo e.g. zooming, just edits. I've seen novices accidentally change UI and get stuck though.
Perhaps UI customisation should be minimised?