gitk: Bind Key-Return to create on new branch dialog
The Return key can now be used as well as pressing the Create button from the dialog box that is shown when selecting "Create new branch". Signed-off-by: Richard Quirk <richard.quirk@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Richard Quirk committed
Oct 14, 2008 at 22:53 UTC
63767d5fb8fe236d8fdeba44297ac925701b27a0
1 file changed
+1
gitk
+1
@@ -7625,6 +7625,7 @@ proc mkbranch {} {
7625
grid $top.id $top.sha1 -sticky w
7626
label $top.nlab -text [mc "Name:"]
7627
entry $top.name -width 40
7628
+ bind $top.name <Key-Return> "[list mkbrgo $top]"
7629
grid $top.nlab $top.name -sticky w
7630
frame $top.buts
7631
button $top.buts.go -text [mc "Create"] -command [list mkbrgo $top]