diff options
author | vincentdarley <vincentdarley> | 2005-04-18 11:34:40 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2005-04-18 11:34:40 (GMT) |
commit | 5ead8f9a8a9c1df902da03a5abd29c1a36b8e2ee (patch) | |
tree | 7f394614d99b93f8cd92b11140fa3789a05effb8 /library/text.tcl | |
parent | 9295daaaad625b41892d939729104763a2d2b3ce (diff) | |
download | tk-5ead8f9a8a9c1df902da03a5abd29c1a36b8e2ee.zip tk-5ead8f9a8a9c1df902da03a5abd29c1a36b8e2ee.tar.gz tk-5ead8f9a8a9c1df902da03a5abd29c1a36b8e2ee.tar.bz2 |
fix to Home/End and display lines
Diffstat (limited to 'library/text.tcl')
-rw-r--r-- | library/text.tcl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/text.tcl b/library/text.tcl index f630149..40973e7 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.35 2004/10/18 13:40:56 vincentdarley Exp $ +# RCS: @(#) $Id: text.tcl,v 1.36 2005/04/18 11:34:41 vincentdarley Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -155,16 +155,16 @@ bind Text <Control-Next> { } bind Text <Home> { - tk::TextSetCursor %W {insert linestart} + tk::TextSetCursor %W {insert display linestart} } bind Text <Shift-Home> { - tk::TextKeySelect %W {insert linestart} + tk::TextKeySelect %W {insert display linestart} } bind Text <End> { - tk::TextSetCursor %W {insert lineend} + tk::TextSetCursor %W {insert display lineend} } bind Text <Shift-End> { - tk::TextKeySelect %W {insert lineend} + tk::TextKeySelect %W {insert display lineend} } bind Text <Control-Home> { tk::TextSetCursor %W 1.0 @@ -173,10 +173,10 @@ bind Text <Control-Shift-Home> { tk::TextKeySelect %W 1.0 } bind Text <Control-End> { - tk::TextSetCursor %W {end - 1 char} + tk::TextSetCursor %W {end - 1 indices} } bind Text <Control-Shift-End> { - tk::TextKeySelect %W {end - 1 char} + tk::TextKeySelect %W {end - 1 indices} } bind Text <Tab> { @@ -284,7 +284,7 @@ if {[string equal [tk windowingsystem] "aqua"]} { bind Text <Control-a> { if {!$tk_strictMotif} { - tk::TextSetCursor %W {insert linestart} + tk::TextSetCursor %W {insert display linestart} } } bind Text <Control-b> { @@ -299,7 +299,7 @@ bind Text <Control-d> { } bind Text <Control-e> { if {!$tk_strictMotif} { - tk::TextSetCursor %W {insert lineend} + tk::TextSetCursor %W {insert display lineend} } } bind Text <Control-f> { |