Skip to content
Snippets Groups Projects
Commit 3c2481fc authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

Give focus to message textview when we open a new chat. Fixes #5740

parent 18f03edd
No related branches found
No related tags found
No related merge requests found
......@@ -298,9 +298,10 @@ _('Do you really want to close them all?'),
self.notebook.show_all()
else:
self.window.show_all()
# NOTE: we do not call set_control_active(True) since we don't know whether
# the tab is the active one.
# NOTE: we do not call set_control_active(True) since we don't know
# whether the tab is the active one.
self.show_title()
gobject.idle_add(control.msg_textview.grab_focus)
def on_tab_eventbox_button_press_event(self, widget, event, child):
if event.button == 3: # right click
......@@ -511,6 +512,7 @@ _('Do you really want to close them all?'),
ctrl_page = self.notebook.page_num(ctrl.widget)
self.notebook.set_current_page(ctrl_page)
self.window.present()
gobject.idle_add(ctrl.msg_textview.grab_focus)
def remove_tab(self, ctrl, method, reason = None, force = False):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment