summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2006-03-02 12:15:05 (GMT)
committerPaul Mackerras <paulus@samba.org>2006-03-02 22:56:32 (GMT)
commit9f841cf1fbe4150a78555a45fd8a7794010975d4 (patch)
tree323e48c4a43100e80c8f0b76944ad4ae926ee41f /gitk
parentc934a8a3a32896e44123c0a489367a1df1108c4a (diff)
downloadgit-9f841cf1fbe4150a78555a45fd8a7794010975d4.zip
git-9f841cf1fbe4150a78555a45fd8a7794010975d4.tar.gz
git-9f841cf1fbe4150a78555a45fd8a7794010975d4.tar.bz2
[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>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk1
1 files changed, 1 insertions, 0 deletions
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 <Visibility> "grab $w; focus $w"
+ bind $w <Key-Return> "destroy $w"
tkwait window $w
}