{"action":"opened","issue":{"url":"https://api.github.com/repos/hexchat/hexchat/issues/1676","repository_url":"https://api.github.com/repos/hexchat/hexchat","labels_url":"https://api.github.com/repos/hexchat/hexchat/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/hexchat/hexchat/issues/1676/comments","events_url":"https://api.github.com/repos/hexchat/hexchat/issues/1676/events","html_url":"https://github.com/hexchat/hexchat/issues/1676","id":146939236,"number":1676,"title":"On launch, tabs open and steal focus unexpectedly","user":{"login":"salty-horse","id":28355,"avatar_url":"https://avatars.githubusercontent.com/u/28355?v=3","gravatar_id":"","url":"https://api.github.com/users/salty-horse","html_url":"https://github.com/salty-horse","followers_url":"https://api.github.com/users/salty-horse/followers","following_url":"https://api.github.com/users/salty-horse/following{/other_user}","gists_url":"https://api.github.com/users/salty-horse/gists{/gist_id}","starred_url":"https://api.github.com/users/salty-horse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salty-horse/subscriptions","organizations_url":"https://api.github.com/users/salty-horse/orgs","repos_url":"https://api.github.com/users/salty-horse/repos","events_url":"https://api.github.com/users/salty-horse/events{/privacy}","received_events_url":"https://api.github.com/users/salty-horse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T14:10:06Z","updated_at":"2016-04-08T14:10:06Z","closed_at":null,"body":"Using HexChat 2.10.2\r\n\r\nI have several servers set to autoconnect on launch.\r\n\r\nIf the connection takes a long time, it may happen that I will be on one tab, already typing something in the text box, then, once another server connects, a tab for a different channel will open and steal the focus, and before noticing, I will end up typing an ending of a message and hitting ENTER, sending a truncated the message to the wrong channel.\r\n\r\nI can think of several solutions:\r\n\r\n1. tabs that are opening due to an autoconnect should not steal focus.\r\n2. If the text box is not empty, new tabs shouldn't steal focus."}}