git-gui: Force focus to the diff viewer on mouse click.
[gitweb.git] / git-gui.sh
index f587f31a2ceef1cf4b370ed3ed5a5a740e7368fc..ea4136c98b0621264969f47a11f80d24834bf77f 100755 (executable)
@@ -4472,6 +4472,7 @@ bind $ui_diff <Key-Up>     {catch {%W yview scroll -1 units};break}
 bind $ui_diff <Key-Down>   {catch {%W yview scroll  1 units};break}
 bind $ui_diff <Key-Left>   {catch {%W xview scroll -1 units};break}
 bind $ui_diff <Key-Right>  {catch {%W xview scroll  1 units};break}
+bind $ui_diff <Button-1>   {focus %W}
 
 if {!$single_commit} {
        bind . <$M1B-Key-n> do_create_branch