partially fix caret positioning
fix caret position when adding character before mask characters
Reserve caret position on remask
Fix reservation of caret position on remask
Merge pull request #143 from sonarsphere/master

Fix for caret positioning on applying a new mask and adding characters before a mask character