summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrh@sqlite.org <drh>2003-01-23 23:30:11 (GMT)
committerdrh@sqlite.org <drh>2003-01-23 23:30:11 (GMT)
commit8d5d43290eb55317c071fc6c1ffff02e0a48aa9b (patch)
treedd6bd5b08988c9e068ede5b1ea4161854f8bf940
parent1b3e231b7aa419e2eba170d0390f74ef1472d35b (diff)
downloadtk-8d5d43290eb55317c071fc6c1ffff02e0a48aa9b.zip
tk-8d5d43290eb55317c071fc6c1ffff02e0a48aa9b.tar.gz
tk-8d5d43290eb55317c071fc6c1ffff02e0a48aa9b.tar.bz2
Fix the entry widget's KeyPress binding so that text is entered from
left to right, not right to left, even if the mouse button is being held down. [Bug #673687].
-rw-r--r--ChangeLog6
-rw-r--r--library/entry.tcl3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 164dd9d..1a04621 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-23 D. Richard Hipp <drh@hwaci.com>
+
+ * library/entry.tcl: Fix the KeyPress binding on the entry widget
+ so that it enters text from left to right (not right to left) even
+ if the mouse button is being held down. [Bug #673687]
+
2003-01-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* generic/tkFrame.c (TkToplevelWindowForCommand): Added way of
diff --git a/library/entry.tcl b/library/entry.tcl
index 04e3c35..8828909 100644
--- a/library/entry.tcl
+++ b/library/entry.tcl
@@ -3,7 +3,7 @@
# This file defines the default bindings for Tk entry widgets and provides
# procedures that help in implementing those bindings.
#
-# RCS: @(#) $Id: entry.tcl,v 1.20 2002/08/31 06:12:28 das Exp $
+# RCS: @(#) $Id: entry.tcl,v 1.21 2003/01/23 23:30:11 drh Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -188,6 +188,7 @@ bind Entry <Control-backslash> {
%W selection clear
}
bind Entry <KeyPress> {
+ tk::CancelRepeat
tk::EntryInsert %W %A
}