Performing the focus capture when a cursor is registered to the document causes undo/redo to slow down, as the focus gets pulled into the cursor as soon as the AddCursor op is executed. The focus should not be changed while executing operations.