summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
diff options
context:
space:
mode:
authorjenglish <jenglish@noemail.net>2003-10-06 22:14:25 (GMT)
committerjenglish <jenglish@noemail.net>2003-10-06 22:14:25 (GMT)
commit2d583bc6d88297a5e94e29bf8e23c1556ed0b2fe (patch)
treeb21909f09bda9d05855b605a23a7d829ed8b38f1 /library/text.tcl
parent9bce5181cf88207830c74887dc5dceb983b2bcef (diff)
downloadtk-2d583bc6d88297a5e94e29bf8e23c1556ed0b2fe.zip
tk-2d583bc6d88297a5e94e29bf8e23c1556ed0b2fe.tar.gz
tk-2d583bc6d88297a5e94e29bf8e23c1556ed0b2fe.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] FossilOrigin-Name: 121da1209e3711c43cef11e2c5d634ddeb86c5d5
Diffstat (limited to 'library/text.tcl')
-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
}