Removed mouse capture while composing text in chat (fixes #2486)