summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67a4f1a)
raw | patch | inline | side by side (parent: 67a4f1a)
author | Mark Levedahl <mdl123@verizon.net> | |
Wed, 8 Aug 2007 01:40:34 +0000 (21:40 -0400) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 12 Aug 2007 07:29:55 +0000 (17:29 +1000) |
On windows, mouse input follows the keyboard focus, so to allow selecting
text from the patch canvas we must not shift focus back to the top level.
This change has no negative impact on X, so we don't explicitly test
for Win32 on this change. This provides similar selection capability
as already available using X-Windows.
Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
text from the patch canvas we must not shift focus back to the top level.
This change has no negative impact on X, so we don't explicitly test
for Win32 on this change. This provides similar selection capability
as already available using X-Windows.
Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 44b04f017a0cadc56a1f3896d1d3d84657b21c58..32206a68f055f118daa46f7bfbbcdeedabaf943a 100755 (executable)
--- a/gitk
+++ b/gitk
# set the focus back to the toplevel for any click outside
# the entry widgets
proc click {w} {
- global entries
- foreach e $entries {
+ global ctext entries
+ foreach e [concat $entries $ctext] {
if {$w == $e} return
}
focus .
proc selnextline {dir} {
global selectedline
+ focus .
if {![info exists selectedline]} return
set l [expr {$selectedline + $dir}]
unmarkmatches
proc goback {} {
global history historyindex
+ focus .
if {$historyindex > 1} {
incr historyindex -1
proc goforw {} {
global history historyindex
+ focus .
if {$historyindex < [llength $history]} {
set cmd [lindex $history $historyindex]