Correct usage of commitText method. Placing cursor after inserted text as it should be.
Merge pull request #483 from SynteZZZ/commitTextFix

Correct usage of commitText method.