Improve focus behavior for message input field
I think it is desirable that a messenger application will have its message input field have focus by default. A problem I see in gajim is that many actions unnecessarily take focus away from the message input field, requiring the user to take their hand off of the keyboard to use the mouse to click on the message input field to give it focus again.
Examples:
-
Ctrl+F then escape -
Clicking a link in chat -
Selecting text in chat -
Selecting text, then clicking the chat menu -
Clicking any preview button -
Close/open user list -
Clicking workspace settings button -
Clicking chat filter button
I don't think there is any need to take focus away from the text input field for these cases. It seems like an unnecessary frustration for the user. Compare this with another messaging client such as Element, where the input field keeps focus after clicking various elements of the gui.
If for some reason this behavior is truly desired, I would suggest that we should as a last option have a keyboard shortcut to return focus to the text input field.