Code

[PATCH] gitk: Make error_popup react to Return
authorMartin Mares <mj@ucw.cz>
Thu, 2 Mar 2006 12:15:05 +0000 (13:15 +0100)
committerPaul Mackerras <paulus@samba.org>
Thu, 2 Mar 2006 22:56:32 +0000 (09:56 +1100)
The error popup window can be now closed not only by clicking
the button, but also by pressing Return.

Signed-Off-By: Martin Mares <mj@ucw.cz>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk

diff --git a/gitk b/gitk
index a70787a879926ca25b9ca0c3b6f54ae962139dab..36e8647b336a38a9dfcc2e186e41740fd57bb521 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -338,6 +338,7 @@ proc error_popup msg {
     button $w.ok -text OK -command "destroy $w"
     pack $w.ok -side bottom -fill x
     bind $w <Visibility> "grab $w; focus $w"
+    bind $w <Key-Return> "destroy $w"
     tkwait window $w
 }