Fixed a bug. Caret is set if context menu click on placeholder.