Added events to set the caret position within the the text area.