This behavior became apparent after fixing #3455372.
Scenario: Two users, one follows the other.
* The follower is typing in the chat.
* Meanwhile the followee switches to another file.
* Before the fix of #3455372, the follower's focus was stolen, and he did not continue writing in the chat view. Now, the focus is kept in the chat view, but the cursor jumps to the beginning of the input field, thus writing "How are you?" may result in "re you?How a".
I can confirm this bug. It occurs too if you type a message and then switch the focus to an other windows and switch back again.
We are two persons from the FU course "Softwareprozesse" and we are currently working on this issue. We will present a possible solution or solution approach soon.
We found the cause for this behavour. It is a not quite correct implementation of the foucs gained event handler of the textbox. We testet a quick fix locally and it worked. We will provide a patch this week.
Fixed by hans-christian7 and his fellow student.
Commit ID: a0e4300c5ff5eee10cf95f949800fc3c44aee508