fix #1008

Focus the search textbox when the lobby is selected, otherwise focus on the chat message box.