fixed carat position after pasting into a masked field