Improve focus behaviour on single-purpose pages/popups and room message field
This is an extension of issue #2261.
Describe the problem
Currently only the CTRL+K search bar gains focus automatically when it is opened. This means that you have to do extra inputs before being able to use many features such as searching messages when clicking "Message Search", or entering the user to DM when clicking "Create Chat". This adds extra friction to using the app and degrades the user experience, especially in daily use and on mobile devices where clicking is more finicky.
In addition, on desktop it is not clear that the user does not need to click the message field to begin typing. Therefore I suggest making this clear by focusing the message field when opening rooms on non-mobile devices.
Describe the solution you'd like
I would like the focus behavior to change so that, The following always gain focus:
- "Join with Address"
- "Message Search" (Spaces and Home)
- "Create Chat" (new DM, invite to room)
The following gain focus when not on mobile:
- Room message field
Components mentioned are "Message Search", "Create Chat", "Invite", "Join with Address", and the room message field.