The undoable text sequence is the longest string of uninterrupted keystrokes that produce text.
An "interruption" in the undoable keystroke sequence is any event that moves the text cursor position to a place other than where the last keystroke was appended, or a cmd-keystroke event that triggers an action, such as ⌘Z.
Examples of keystrokes that will interrupt an undoable keystroke sequence:
- arrow keys followed by any editing (addition or removal of text)
- ⌘Z (Undo) or ⌘V (Paste)
- most menu actions like ⌘S (Save)
Examples of non-keystroke events what WON'T interrupt an undoable keystroke sequence:
- click a menu, then click off it without choosing any menu action.
- cmd-click a window title-bar to drag it without activating it.
The examples are not exhaustive lists. I may be mistaken on some examples, or it may depend on OS version.