Edit, edit, commit, then discard with Enter and Escape; editing keys
waiting for the input method; cursor and selection offsets counted in
characters and clamped; a composition dropped when the dialog finishes,
closes or is force-closed; malformed and cut preedits. The title's buffer
only ever holds the accepted committed text.