Improve interaction with text objects (especially exiting edit mode)

[#73648682]