[PATCH] Set focus on hostname entry in network UI screen (#494135)

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

 



---
 iw/network_gui.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/iw/network_gui.py b/iw/network_gui.py
index 9f5ced7..ce2c879 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -44,13 +44,16 @@ class NetworkWindow(InstallWindow):
         self.hostnameEntry.set_text(self.hostname)
         self.hostnameEntry.connect("activate",
                                    lambda w: self.ics.setGrabNext(1))
-        self.hostnameEntry.grab_focus()
+        self.hostnameEntry.connect("map-event", self.setFocus)
 
         # load the icon
         gui.readImageFromFile("network.png", image=self.icon)
 
         return self.align
 
+    def setFocus(self, area, data):
+        self.hostnameEntry.grab_focus()
+
     def hostnameError(self):
         self.hostnameEntry.grab_focus()
         raise gui.StayOnScreen
-- 
1.6.0.6

_______________________________________________
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