summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2003-10-06 22:14:26 (GMT)
committerjenglish <jenglish@flightlab.com>2003-10-06 22:14:26 (GMT)
commit2fdf253ee5c0cba07f91cccd30e01ee3f483d93c (patch)
treeb21909f09bda9d05855b605a23a7d829ed8b38f1 /library
parentf596f8dd798e66df1bc22a543fba38f3d36f1cc9 (diff)
downloadtk-2fdf253ee5c0cba07f91cccd30e01ee3f483d93c.zip
tk-2fdf253ee5c0cba07f91cccd30e01ee3f483d93c.tar.gz
tk-2fdf253ee5c0cba07f91cccd30e01ee3f483d93c.tar.bz2
* library/text.tcl, doc/text.n: Text widget binding for
Control-v is now Mac-only, since it conflicts with standard <<Paste>> binding on other platforms. [Bug #605277]
Diffstat (limited to 'library')
-rw-r--r--library/text.tcl13
1 files changed, 4 insertions, 9 deletions
diff --git a/library/text.tcl b/library/text.tcl
index 864709a..7a3a699 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.25 2003/05/19 13:04:24 vincentdarley Exp $
+# RCS: @(#) $Id: text.tcl,v 1.26 2003/10/06 22:14:26 jenglish Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -347,14 +347,6 @@ bind Text <<Redo>> {
catch { %W edit redo }
}
-if {[string compare $tcl_platform(platform) "windows"]} {
-bind Text <Control-v> {
- if {!$tk_strictMotif} {
- tk::TextScrollPages %W 1
- }
-}
-}
-
bind Text <Meta-b> {
if {!$tk_strictMotif} {
tk::TextSetCursor %W [tk::TextPrevPos %W insert tcl_startOfPreviousWord]
@@ -428,6 +420,9 @@ bind Text <Shift-Option-Up> {
bind Text <Shift-Option-Down> {
tk::TextKeySelect %W [tk::TextNextPara %W insert]
}
+bind Text <Control-v> {
+ tk::TextScrollPages %W 1
+}
# End of Mac only bindings
}