Fix input focus

This commit is contained in:
Mattias Erming 2014-09-18 03:02:52 -07:00
parent ea1aaf2d6e
commit 2f74c2fb27
2 changed files with 11 additions and 1 deletions

View File

@ -323,6 +323,16 @@ $(function() {
});
});
chat.on("click", focus);
$(window).on("focus", focus);
function focus() {
var chan = chat.find(".active");
if (screen.width > 768 && chan.hasClass("chan")) {
input.focus();
}
}
var top = 1;
sidebar.on("click", "button", function() {
var self = $(this);

View File

@ -1,7 +1,7 @@
{
"name": "shout",
"description": "A web IRC client",
"version": "0.31.2",
"version": "0.31.3",
"author": "Mattias Erming",
"preferGlobal": true,
"bin": {