# [PATCH] gitk: bind Key-Return to create on new branch dialog

2 messages from 2008-10-14 to 2008-10-15. Participants: Richard Quirk, Paul Mackerras.
Thread: https://gitlist.dev/t/15899

## Richard Quirk, 2008-10-14 20:53

Subject: [PATCH] gitk: bind Key-Return to create on new branch dialog
Message-ID: <1224017605-13893-1-git-send-email-richard.quirk@gmail.com>
URL: https://gitlist.dev/e/1224017605-13893-1-git-send-email-richard.quirk%40gmail.com

```
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>
---
 gitk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gitk b/gitk
index 2eaa2ae..81d6c80 100755
--- a/gitk
+++ b/gitk
@@ -7590,6 +7590,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]
-- 
1.6.0.6.gc667

```

## Paul Mackerras, 2008-10-15 23:11

Subject: Re: [PATCH] gitk: bind Key-Return to create on new branch dialog
Message-ID: <18678.30857.338363.174246@cargo.ozlabs.ibm.com>
URL: https://gitlist.dev/e/18678.30857.338363.174246%40cargo.ozlabs.ibm.com
In-Reply-To: <1224017605-13893-1-git-send-email-richard.quirk@gmail.com>

```
Richard Quirk writes:

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

Thanks, applied.

Paul.

```
