diff --git a/src/virtManager/addhardware.py b/src/virtManager/addhardware.py index 2fa1d8b55..c573e7af0 100644 --- a/src/virtManager/addhardware.py +++ b/src/virtManager/addhardware.py @@ -690,6 +690,7 @@ class vmmAddHardware(gobject.GObject): else: notebook.set_current_page(PAGE_SUMMARY) self.window.get_widget("create-finish").show() + self.window.get_widget("create-finish").grab_focus() self.window.get_widget("create-forward").hide() self.window.get_widget("create-back").set_sensitive(True) diff --git a/src/virtManager/create.py b/src/virtManager/create.py index 1b86b5d5f..422c154d4 100644 --- a/src/virtManager/create.py +++ b/src/virtManager/create.py @@ -110,6 +110,7 @@ class vmmCreate(gobject.GObject): "on_create_help_clicked": self.show_help, "on_create_pages_switch_page": self.page_changed, + "on_create_vm_name_activate": self.forward, "on_create_conn_changed": self.conn_changed, "on_install_url_box_changed": self.url_box_changed, @@ -1011,7 +1012,7 @@ class vmmCreate(gobject.GObject): notebook.set_current_page(curpage - 1) - def forward(self, src): + def forward(self, ignore): notebook = self.window.get_widget("create-pages") curpage = notebook.get_current_page() @@ -1025,7 +1026,7 @@ class vmmCreate(gobject.GObject): # PV or FV self.guest_from_install_type() - + self.window.get_widget("create-forward").grab_focus() notebook.set_current_page(curpage + 1) def page_changed(self, ignore1, ignore2, pagenum): @@ -1048,6 +1049,7 @@ class vmmCreate(gobject.GObject): if pagenum == PAGE_FINISH: self.window.get_widget("create-forward").hide() self.window.get_widget("create-finish").show() + self.window.get_widget("create-finish").grab_focus() self.populate_summary() # Repopulate the HV list, so we can make install method relevant diff --git a/src/virtManager/createnet.py b/src/virtManager/createnet.py index 28fea2e52..210032a86 100644 --- a/src/virtManager/createnet.py +++ b/src/virtManager/createnet.py @@ -61,6 +61,8 @@ class vmmCreateNetwork(gobject.GObject): "on_create_back_clicked" : self.back, "on_create_forward_clicked" : self.forward, "on_create_finish_clicked" : self.finish, + + "on_net_name_activate": self.forward, "on_net_forward_toggled" : self.change_forward_type, "on_net_network_changed": self.change_network, "on_net_dhcp_enable_toggled": self.change_dhcp_enable, @@ -140,6 +142,7 @@ class vmmCreateNetwork(gobject.GObject): if(self.validate(notebook.get_current_page()) != True): return + self.window.get_widget("create-forward").grab_focus() notebook.next_page() def back(self, ignore=None): @@ -302,6 +305,7 @@ class vmmCreateNetwork(gobject.GObject): self.window.get_widget("summary-forwarding").set_text(forward_txt) self.window.get_widget("create-forward").hide() self.window.get_widget("create-finish").show() + self.window.get_widget("create-finish").grab_focus() def close(self, ignore1=None,ignore2=None): self.topwin.hide() diff --git a/src/virtManager/createpool.py b/src/virtManager/createpool.py index e7ac803e7..2d4597011 100644 --- a/src/virtManager/createpool.py +++ b/src/virtManager/createpool.py @@ -67,6 +67,7 @@ class vmmCreatePool(gobject.GObject): "on_pool_source_button_clicked" : self.browse_source_path, "on_pool_target_button_clicked" : self.browse_target_path, + "on_pool_name_activate": self.forward, "on_pool_hostname_activate" : self.hostname_changed, "on_pool_name_focus_in_event": (self.update_doc, "name", @@ -170,6 +171,7 @@ class vmmCreatePool(gobject.GObject): self.window.get_widget("pool-back").set_sensitive(False) self.window.get_widget("pool-name").set_text("") + self.window.get_widget("pool-name").grab_focus() self.window.get_widget("pool-type").set_active(0) self.window.get_widget("pool-target-path").child.set_text("") self.window.get_widget("pool-source-path").child.set_text("") @@ -385,6 +387,7 @@ class vmmCreatePool(gobject.GObject): if notebook.get_current_page() == PAGE_FORMAT: self.finish() else: + self.window.get_widget("pool-forward").grab_focus() notebook.next_page() except Exception, e: self.err.show_err(_("Uncaught error validating input: %s") % str(e), @@ -439,6 +442,7 @@ class vmmCreatePool(gobject.GObject): self.window.get_widget("pool-back").set_sensitive(False) self.window.get_widget("pool-finish").hide() self.window.get_widget("pool-forward").show() + self.window.get_widget("pool-forward").grab_focus() elif page_number == PAGE_FORMAT: self.show_options_by_pool() self.window.get_widget("pool-target-path").child.set_text(self._pool.target_path) @@ -447,6 +451,7 @@ class vmmCreatePool(gobject.GObject): self.window.get_widget("pool-build").set_sensitive(buildret[1]) self.window.get_widget("pool-build").set_active(buildret[0]) self.window.get_widget("pool-finish").show() + self.window.get_widget("pool-finish").grab_focus() self.window.get_widget("pool-forward").hide() def get_pool_to_validate(self): diff --git a/src/vmm-create-net.glade b/src/vmm-create-net.glade index 0bae2e89f..f75b2add2 100644 --- a/src/vmm-create-net.glade +++ b/src/vmm-create-net.glade @@ -296,6 +296,7 @@ Net Name Field + 1 @@ -1602,6 +1603,7 @@ gtk-go-forward True True + True True True diff --git a/src/vmm-create-pool.glade b/src/vmm-create-pool.glade index 4e1a7b17e..e4ef49272 100644 --- a/src/vmm-create-pool.glade +++ b/src/vmm-create-pool.glade @@ -151,6 +151,7 @@ True + 1 diff --git a/src/vmm-create.glade b/src/vmm-create.glade index dc95ef1f0..7c5cbd92f 100644 --- a/src/vmm-create.glade +++ b/src/vmm-create.glade @@ -132,6 +132,7 @@ True True + 1 diff --git a/src/vmm-delete.glade b/src/vmm-delete.glade index 3ed8f852d..a82387d8c 100644 --- a/src/vmm-delete.glade +++ b/src/vmm-delete.glade @@ -121,6 +121,7 @@ gtk-cancel True True + True True True