From 9f841cf1fbe4150a78555a45fd8a7794010975d4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 2 Mar 2006 13:15:05 +0100 Subject: [PATCH] [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 --- gitk | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.23.0