[rhel6-branch] Focus the window after changing language (#628426)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We need to call window.present() after changing
the install language, so the window is focused in
the window manager, and the shortcuts work without
needing to click inside the window.
---
 gui.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gui.py b/gui.py
index 992f21f..aef05fa 100755
--- a/gui.py
+++ b/gui.py
@@ -1306,12 +1306,16 @@ class InstallControlWindow:
 
         self.window.destroy()
         self.window = self.mainxml.get_widget("mainWindow")
-        
+
         self.createWidgets()
         self.connectSignals()
         self.setScreen()
         self.window.show()
 
+        # calling present() will focus the window in the window manager so
+        # the mnemonics work without additional clicking
+        self.window.present()
+
     def setLtR(self):
         ltrrtl = gettext.dgettext("gtk20", "default:LTR")
         if ltrrtl == "default:RTL":
-- 
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux