Always bind the return key to the default button
[gitweb.git] / git-gui.sh
index 6439bee6ac565a09deb8cbed68e469ef0a45a1ce..882b90723d7be8219f67ddfdb8979bc331d6f71f 100755 (executable)
@@ -2787,6 +2787,7 @@ proc do_push_anywhere {} {
 
        bind $w <Visibility> "grab $w; focus $w.buttons.create"
        bind $w <Key-Escape> "destroy $w"
+       bind $w <Key-Return> [list start_push_anywhere_action $w]
        wm title $w "[appname] ([reponame]): Push"
        tkwait window $w
 }
@@ -4713,6 +4714,7 @@ proc do_options {} {
 
        bind $w <Visibility> "grab $w; focus $w.buttons.save"
        bind $w <Key-Escape> "destroy $w"
+       bind $w <Key-Return> [list do_save_config $w]
        wm title $w "[appname] ([reponame]): Options"
        tkwait window $w
 }