From: Martin Mares Date: Thu, 2 Mar 2006 12:15:05 +0000 (+0100) Subject: [PATCH] gitk: Make error_popup react to Return X-Git-Tag: v1.3.0-rc1~1^2~1^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9f841cf1fbe4150a78555a45fd8a7794010975d4;p=git.git [PATCH] gitk: Make error_popup react to Return The error popup window can be now closed not only by clicking the button, but also by pressing Return. Signed-Off-By: Martin Mares Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index a70787a87..36e8647b3 100755 --- 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 "grab $w; focus $w" + bind $w "destroy $w" tkwait window $w }