git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk - enable selected patch text on Windows
@ 2007-08-06 22:45 Mark Levedahl
  2007-08-06 22:45 ` [PATCH] gitk - Handle MouseWheel events " Mark Levedahl
  2007-08-08  1:40 ` [PATCH] gitk - enable selected patch text " Mark Levedahl
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Levedahl @ 2007-08-06 22:45 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Git Mailing List, Mark Levedahl

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>
---
 gitk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gitk b/gitk
index f74ce51..08ff5df 100755
--- a/gitk
+++ b/gitk
@@ -955,8 +955,8 @@ proc bindkey {ev script} {
 # 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 .
-- 
1.5.3.rc4.5.g4f0b5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-11 16:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 22:45 [PATCH] gitk - enable selected patch text on Windows Mark Levedahl
2007-08-06 22:45 ` [PATCH] gitk - Handle MouseWheel events " Mark Levedahl
2007-08-08  1:40 ` [PATCH] gitk - enable selected patch text " Mark Levedahl
2007-08-08  1:40   ` [PATCH] gitk - Handle MouseWheel events " Mark Levedahl
2007-08-11 12:23     ` Mark Levedahl
2007-08-11 16:58       ` Steffen Prohaska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).