teiiddes-1961: setText() was setting the caret position to zero. Added logic to set it to the end after setText().
teiiddes-1961: Chacged to use caret postion prior to setText() in case the user was editing the middle of the text vale.
Merge pull request #290 from tejones/teiiddes-1961

teiiddes-1961