chat: autofocus input on desktop
@@ -341,6 +341,11 @@ export class ChatInput extends Component {
options={options}
editorDidMount={(editor) => {
this.editor = editor;
+ if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(
+ navigator.userAgent
+ )) {
+ editor.focus();
+ }
}}
onChange={(e, d, v) => this.messageChange(e, d, v)}
/>
