[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 a70787a..36e8647 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
 }