Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-08-17 14:11:46 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-08-17 14:11:46 +0300
commit197dfa5c15f3d5f678e661659d7f6504df612a76 (patch)
treeb19485c9d2398e8eeb5f71fbab1b737d93dbfe23
parentcf14c04d7b4608809036c89c06f976af6c97335e (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.py4
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):