From 0dbbbc01d5d3c9e21715fbb1af042a3957b62fe9 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Tue, 5 May 2009 14:43:55 -1000 Subject: Enter in hostname entry field advances to next screen (#494135) Give the hostname entry field focus when we get to that screen in anaconda. Pressing Enter in the entry box will advance to the next screen. --- iw/network_gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'iw') diff --git a/iw/network_gui.py b/iw/network_gui.py index 365333ac3..9f5ced738 100644 --- a/iw/network_gui.py +++ b/iw/network_gui.py @@ -2,7 +2,7 @@ # network_gui.py: Network configuration dialog # # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, Red Hat, Inc. -# 2007, 2008 +# 2007, 2008, 2009 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -42,6 +42,9 @@ class NetworkWindow(InstallWindow): self.icon = self.xml.get_widget("icon") self.hostnameEntry = self.xml.get_widget("hostnameEntry") self.hostnameEntry.set_text(self.hostname) + self.hostnameEntry.connect("activate", + lambda w: self.ics.setGrabNext(1)) + self.hostnameEntry.grab_focus() # load the icon gui.readImageFromFile("network.png", image=self.icon) -- cgit