diff --git a/js/client-chat.js b/js/client-chat.js index 92c0c9adf..a5d616375 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -46,7 +46,11 @@ }, focus: function() { - if (this.$chatbox) this.$chatbox.focus(); + if (this.$chatbox) { + this.$chatbox.focus(); + } else { + this.$('button[name=login]').focus(); + } }, login: function() {