Commit d0ee41d4 authored by Christoph Scholz's avatar Christoph Scholz Committed by JC Brand

focus now on jid field after controlbox is loaded

parent 36e56052
......@@ -3,6 +3,7 @@
- #1313: Stylistic improvements to the send button
- #1793: Send button doesn't appear in Firefox in 1:1 chats
- #1822: Don't log error if user has no bookmarks
- #1820: Set focus on jid field after controlbox is loaded
## 6.0.0 (2020-01-09)
......
......@@ -265,7 +265,9 @@ auto_focus
If set to ``true``, the textarea for composing chat messages will automatically
become focused as soon as a chat is opened. This means you don't need to click
the textarea first before starting to type a message.
the textarea first before starting to type a message. This also applies to the
username field which is automatically focused after the login controlbox is
loaded.
For applications where chat is not the main feature, automatic focus of the
chat box might be undesired.
......
......@@ -257,6 +257,9 @@ converse.plugins.add('converse-controlbox', {
this.insertBrandHeading();
}
this.loginpanel.initPopovers();
if (_converse.auto_focus) {
this.loginpanel.el.querySelector('#converse-login-jid').focus();
}
return this;
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment