[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>maint
parent
c934a8a3a3
commit
9f841cf1fb
1
gitk
1
gitk
|
@ -338,6 +338,7 @@ proc error_popup msg {
|
||||||
button $w.ok -text OK -command "destroy $w"
|
button $w.ok -text OK -command "destroy $w"
|
||||||
pack $w.ok -side bottom -fill x
|
pack $w.ok -side bottom -fill x
|
||||||
bind $w <Visibility> "grab $w; focus $w"
|
bind $w <Visibility> "grab $w; focus $w"
|
||||||
|
bind $w <Key-Return> "destroy $w"
|
||||||
tkwait window $w
|
tkwait window $w
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue