From: Martin Mares Date: Thu, 2 Mar 2006 12:15:05 +0000 (+0100) Subject: [PATCH] gitk: Make error_popup react to Return X-Git-Url: http://privyetmir.co.uk/gitweb?a=commitdiff_plain;h=9f841cf1fbe4150a78555a45fd8a7794010975d4;p=gitk [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 a70787a..36e8647 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 }