From: Richard Quirk <richard.quirk@gmail.com>
Date: Tue, 14 Oct 2008 20:53:25 +0000 (+0200)
Subject: gitk: Bind Key-Return to create on new branch dialog
X-Git-Url: http://www.privyetmir.co.uk/gitweb?a=commitdiff_plain;h=63767d5fb8fe236d8fdeba44297ac925701b27a0;p=gitk

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>
---

diff --git a/gitk b/gitk
index 00ea8da..0f9ff7f 100755
--- a/gitk
+++ b/gitk
@@ -7625,6 +7625,7 @@ proc mkbranch {} {
     grid $top.id $top.sha1 -sticky w
     label $top.nlab -text [mc "Name:"]
     entry $top.name -width 40
+    bind $top.name <Key-Return> "[list mkbrgo $top]"
     grid $top.nlab $top.name -sticky w
     frame $top.buts
     button $top.buts.go -text [mc "Create"] -command [list mkbrgo $top]