summaryrefslogtreecommitdiffstats
path: root/gitk
diff options
context:
space:
mode:
authorRichard Quirk <richard.quirk@gmail.com>2008-10-14 22:53:25 +0200
committerPaul Mackerras <paulus@samba.org>2008-10-16 01:10:30 +0200
commit63767d5fb8fe236d8fdeba44297ac925701b27a0 (patch)
tree37a8e8ee26ad86ea2b85505baf37d06db2bc5f27 /gitk
parentgitk: Fix binding for <Return> in sha1 entry field (diff)
downloadgit-63767d5fb8fe236d8fdeba44297ac925701b27a0.tar.xz
git-63767d5fb8fe236d8fdeba44297ac925701b27a0.zip
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>
Diffstat (limited to '')
-rwxr-xr-xgitk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitk b/gitk
index 00ea8da735..0f9ff7f659 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]