Red Hat Bugzilla – Bug 1339565
Can't press "create" button via keyboard when create network on p2v client
Last modified: 2016-11-03 15:22:26 EDT
Description of problem: Can't press "create" button via keyboard when create network on p2v client Version-Release number of selected component (if applicable): virt-p2v-1.32.4-1 How reproducible: 100% Steps to Reproduce: 1. Boot host from virt-p2v iso. 2. Select"Configure network ..." to enter network configure menu after the p2v GUI appear 3. Click "Add" to enter Choose Connection Type menu 4. Select a network (for example: Ethernet) 5. Move the select box to "Create" button using tab keypad of keyboard (do not using mouse) 6. Can't enter into create network interface via Press Enter keypad of keyboard Actual results: Can't press "create" button via keyboard Expected results: It's can be press "create "button success via keyboard Additional info: 1.Can be into the create network interface successful via mouse 2.it's can be reproduced on virt-p2v-1.28.1-1.51.3 please see the attachment for detail
Created attachment 1161383 [details] As the screenshot,try to press enter keypad to into network interface
I can reproduce this on Fedora 24 too. When you tab to highlight the "Create" button and hit the enter key, the "Cancel" button gets pressed!
(In reply to Richard W.M. Jones from comment #3) > I can reproduce this on Fedora 24 too. When you tab to highlight > the "Create" button and hit the enter key, the "Cancel" button gets > pressed! that doesn't happen for me. Could you elaborate a bit more what you are doing? Exactly which version of nm-connection-editor are you using? Also, the button is named "Save" not "Create"... Thanks
Run nm-connection-editor. Click the Add button. Using the *keyboard* (not mouse) tab to Create. Hit enter. The cancel button is activated. $ rpm -qf `which nm-connection-editor ` nm-connection-editor-1.2.0-1.fc24.x86_64
Thanks Richard, I see now. It seems in GTK, "Enter" selects the default action of the dialog (which is "Cancel"). Probably, the default action should be "Create" instead. To invoke the currently selected item, use "Space" instead. I think this is a GTK thing and that works for me as expected.
Created attachment 1176169 [details] [patch v1] c-e: don't set the Cancel's button in "Add connection" dialog has_default
(In reply to Thomas Haller from comment #9) > Created attachment 1176169 [details] > [patch v1] c-e: don't set the Cancel's button in "Add connection" dialog > has_default LGTM
merged upstream: https://git.gnome.org/browse/network-manager-applet/commit/?id=e37e9bc12971a8740d5b451db360b36cf04b3c1f
Create button works as expected
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2581.html