summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-11-13 14:44:21 (GMT)
committervincentdarley <vincentdarley>2003-11-13 14:44:21 (GMT)
commitff398c9de22aa928ab5b9129b92dd595159869b0 (patch)
treee9f4812ad9ddfa31d7ba8abce73b7a37296b6fcd
parentc9a21bc6573fb9f501fc6b07a8d147c927b45799 (diff)
downloadtk-ff398c9de22aa928ab5b9129b92dd595159869b0.zip
tk-ff398c9de22aa928ab5b9129b92dd595159869b0.tar.gz
tk-ff398c9de22aa928ab5b9129b92dd595159869b0.tar.bz2
text widget insert positioning after double/triple click
-rw-r--r--ChangeLog3
-rw-r--r--library/text.tcl6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 6292099..66b0ffe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,9 @@
bindings trigger on window borders), and made two more functions
static in tkTextDisp.c.
+ * library/text.tcl: fixed [Tcl Bug 699642] with double/triple-click
+ insert positioning.
+
2003-11-11 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure:
diff --git a/library/text.tcl b/library/text.tcl
index dffd473..e4daa3f 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -3,7 +3,7 @@
# This file defines the default bindings for Tk text widgets and provides
# procedures that help in implementing the bindings.
#
-# RCS: @(#) $Id: text.tcl,v 1.27 2003/10/31 09:02:13 vincentdarley Exp $
+# RCS: @(#) $Id: text.tcl,v 1.28 2003/11/13 14:44:22 vincentdarley Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -53,12 +53,12 @@ bind Text <B1-Motion> {
bind Text <Double-1> {
set tk::Priv(selectMode) word
tk::TextSelectTo %W %x %y
- catch {%W mark set insert sel.last}
+ catch {%W mark set insert sel.first}
}
bind Text <Triple-1> {
set tk::Priv(selectMode) line
tk::TextSelectTo %W %x %y
- catch {%W mark set insert sel.last}
+ catch {%W mark set insert sel.first}
}
bind Text <Shift-1> {
tk::TextResetAnchor %W @%x,%y