summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2003-11-13 14:44:20 (GMT)
committervincentdarley <vincentdarley@noemail.net>2003-11-13 14:44:20 (GMT)
commitd62cd30cc75c2634bceb0141f67760ee1b54d3e0 (patch)
treee9f4812ad9ddfa31d7ba8abce73b7a37296b6fcd /library/text.tcl
parent0d88103b29262d30f652e0dda2159e7620c05910 (diff)
downloadtk-d62cd30cc75c2634bceb0141f67760ee1b54d3e0.zip
tk-d62cd30cc75c2634bceb0141f67760ee1b54d3e0.tar.gz
tk-d62cd30cc75c2634bceb0141f67760ee1b54d3e0.tar.bz2
text widget insert positioning after double/triple click
FossilOrigin-Name: d451ef92f70c4407fe908084275617f6a5a9c747
Diffstat (limited to 'library/text.tcl')
-rw-r--r--library/text.tcl6
1 files changed, 3 insertions, 3 deletions
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