When comments panel is closed while the caret is still in the comment body, most document commands (all except typing) continue to execute in the comment body. The bug is regression introduced in 2013 Q3. Workaround: save the document position of the caret before showing the comment and after hiding the comments' panel, apply the saved caret position to the document. Attached is a sample project with the fix.