threads / patch / 15899

patchgitk: bind Key-Return to create on new branch dialog

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

## tl;dr

2 messages between Oct 14, 2008 and Oct 15, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Richard Quirk· Oct 14, 2008, 20:53 UTC · lore

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(-)
Show changes to gitk +1 −0
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· Oct 15, 2008, 23:11 UTC · re: Richard Quirk · lore

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

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.

← back to recent threads