gitk: Make text selectable on Mac
[gitweb.git] / gitk
diff --git a/gitk b/gitk
index 8f65900763b4878da98f6e6d37d87efa047c36b4..e82c6bfedea5fb9a3d768c0fa1759346c6e5e603 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -2477,6 +2477,7 @@ proc makewindow {} {
     global ctxbut
     bind $cflist $ctxbut {pop_flist_menu %W %X %Y %x %y}
     bind $ctext $ctxbut {pop_diff_menu %W %X %Y %x %y}
+    bind $ctext <Button-1> {focus %W}
 
     set maincursor [. cget -cursor]
     set textcursor [$ctext cget -cursor]