[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 <mj@ucw.cz> Signed-off-by: Paul Mackerras <paulus@samba.org>
Martin Mares committed
Mar 2, 2006 at 13:15 UTC
9f841cf1fbe4150a78555a45fd8a7794010975d4
1 file changed
+1
gitk
+1
@@ -338,6 +338,7 @@ proc error_popup msg {
338
button $w.ok -text OK -command "destroy $w"
339
pack $w.ok -side bottom -fill x
340
bind $w <Visibility> "grab $w; focus $w"
341
+ bind $w <Key-Return> "destroy $w"
342
tkwait window $w
343
}
344