git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
RQRichard Quirk <richard.quirk@gmail.com>
Date
Oct 14, 2008, 20:53 UTC
Message-ID
<1224017605-13893-1-git-send-email-richard.quirk@gmail.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
Next: Paul Mackerras
Message 1 of 2 in “gitk: bind Key-Return to create on new branch dialog”
  1. gitk: bind Key-Return to create on new branch dialogRichard Quirk, Oct 14, 2008
  2. Paul MackerrasOct 15, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.