Test caret position after exiting selection mode.
Fix exclusive selection in select mode.