[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>
This commit is contained in:
Martin Mares 2006-03-02 13:15:05 +01:00 committed by Paul Mackerras
parent c934a8a3a3
commit 9f841cf1fb

1
gitk
View File

@ -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
}