diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-08-17 14:11:46 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-08-17 14:11:46 +0300 |
commit | 197dfa5c15f3d5f678e661659d7f6504df612a76 (patch) | |
tree | b19485c9d2398e8eeb5f71fbab1b737d93dbfe23 | |
parent | cf14c04d7b4608809036c89c06f976af6c97335e (diff) |
Groupchat: Focus close button on muc-info page
This prevents one of the labels getting focus on page switch
-rw-r--r-- | gajim/groupchat_control.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gajim/groupchat_control.py b/gajim/groupchat_control.py index f109f68d0..4e88204e0 100644 --- a/gajim/groupchat_control.py +++ b/gajim/groupchat_control.py @@ -563,6 +563,10 @@ class GroupchatControl(ChatControlBase): if name == 'groupchat': transition = Gtk.StackTransitionType.SLIDE_UP self.msg_textview.grab_focus() + if name == 'muc-info': + # Set focus on the close button, otherwise one of the selectable labels + # of the GroupchatInfo box gets focus, which means it is fully selected + self.xml.info_close_button.grab_focus() self.xml.stack.set_visible_child_full(name, transition) def _get_current_page(self): |