Fix input focus
This commit is contained in:
parent
ea1aaf2d6e
commit
2f74c2fb27
|
@ -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);
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue