Skip to content

Commit

Permalink
[PATCH] gitk: Make error_popup react to Return
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Mares authored and Paul Mackerras committed Mar 2, 2006
1 parent c934a8a commit 9f841cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9f841cf

Please sign in to comment.