From: Shawn O. Pearce Date: Wed, 4 Apr 2007 15:45:33 +0000 (-0400) Subject: Always bind the return key to the default button X-Git-Tag: v1.5.2-rc0~38^2~3^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4372da3441561b3852c0bf466304f1e4f3c06b3f;p=git.git Always bind the return key to the default button If a dialog/window has a default button registered not every platform associates the return key with that button, but all users do. We have to register the binding of the return key ourselves to make sure the user's expectations of pressing return will activate the default button are met. Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui.sh b/git-gui.sh index 6439bee6a..882b90723 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -2787,6 +2787,7 @@ proc do_push_anywhere {} { bind $w "grab $w; focus $w.buttons.create" bind $w "destroy $w" + bind $w [list start_push_anywhere_action $w] wm title $w "[appname] ([reponame]): Push" tkwait window $w } @@ -4713,6 +4714,7 @@ proc do_options {} { bind $w "grab $w; focus $w.buttons.save" bind $w "destroy $w" + bind $w [list do_save_config $w] wm title $w "[appname] ([reponame]): Options" tkwait window $w }