author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 25 Jan 2007 17:57:57 +0000 (12:57 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 25 Jan 2007 17:57:57 +0000 (12:57 -0500) | ||
commit | 23effa79f7697cd27f04cb6edc9680e11e15f02a | |
tree | ae2a79bfbe13557150ce9fd9eab1e1c71b1c7c81 | tree | snapshot |
parent | b9a75e3a979cc39f5c8d0e6d79e19ae31aef17e3 | commit | diff |
git-gui: Force focus to the diff viewer on mouse click.
Apparently a "feature" of Tcl/Tk on Mac OS X is that a disabled text
widget cannot receive focus or receive a selection within it. This
makes the diff viewer almost useless on that platform as you cannot
select individual parts of the buffer.
Now we force focus into the diff viewer when its clicked on with
button 1. This works around the feature and allows selection to
work within the viewer just like it does on other less sane systems,
like Microsoft Windows.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Apparently a "feature" of Tcl/Tk on Mac OS X is that a disabled text
widget cannot receive focus or receive a selection within it. This
makes the diff viewer almost useless on that platform as you cannot
select individual parts of the buffer.
Now we force focus into the diff viewer when its clicked on with
button 1. This works around the feature and allows selection to
work within the viewer just like it does on other less sane systems,
like Microsoft Windows.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |