X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=a31f8d0b185448aa7c1cd5c96c330dae98ef665d;hb=95a66034082b21e50eff842e26030ce2b6519685;hp=510acddae13f46b49cc45af335d7f44bd463d001;hpb=1ad8802192781dde074aa4b9529bd65c405ccc6f;p=vchess.git diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue index 510acdda..a31f8d0b 100644 --- a/client/src/components/Chat.vue +++ b/client/src/components/Chat.vue @@ -42,6 +42,7 @@ export default { sendChat: function() { let chatInput = document.getElementById("inputChat"); const chatTxt = chatInput.value.trim(); + chatInput.focus(); //required on smartphones if (chatTxt == "") return; //nothing to send chatInput.value = ""; const chat = { msg: chatTxt, name: this.st.user.name || "@nonymous" };