From 2c81572206141c449252b2db350be4c5654f48ea Mon Sep 17 00:00:00 2001 From: patthoyts Date: Wed, 12 Nov 2008 22:17:02 +0000 Subject: backported fix for bug #1777362 to make events work for windows with hyphens in the path --- ChangeLog | 5 ++++ library/text.tcl | 88 +++++++++++++++++++++++++++++++++----------------------- tests/text.test | 44 +++++++++++++++++++++++++++- 3 files changed, 100 insertions(+), 37 deletions(-) diff --git a/ChangeLog b/ChangeLog index d3118f7..e07d422 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-12 Pat Thoyts + + * library/text.tcl: Backported fix for bug #1777362 to have events + * test/text.test: work with window paths that include hyphens. + 2008-10-23 Don Porter * generic/tk.h: Bump version number to 8.5.6b1 to distinguish diff --git a/library/text.tcl b/library/text.tcl index 36a15c2..8130d93 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.41 2006/09/10 17:06:32 das Exp $ +# RCS: @(#) $Id: text.tcl,v 1.41.4.1 2008/11/12 22:17:02 patthoyts Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -33,6 +33,7 @@ # char, word, or line. # x, y - Last known mouse coordinates for scanning # and auto-scanning. +# #------------------------------------------------------------------------- #------------------------------------------------------------------------- @@ -224,10 +225,10 @@ bind Text { } bind Text { - %W mark set tk::anchor%W insert + %W mark set [tk::TextAnchor %W] insert } bind Text