summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
diff options
context:
space:
mode:
authorjenglish@flightlab.com <jenglish>2003-10-06 22:14:26 (GMT)
committerjenglish@flightlab.com <jenglish>2003-10-06 22:14:26 (GMT)
commit5fab72b856ae6a195e0aaa5f4b1a18ae8feee7f7 (patch)
treeb21909f09bda9d05855b605a23a7d829ed8b38f1 /library/text.tcl
parent00409b5b5aaf4990c6f085191cb6e5bf9bd4646d (diff)
downloadtk-5fab72b856ae6a195e0aaa5f4b1a18ae8feee7f7.zip
tk-5fab72b856ae6a195e0aaa5f4b1a18ae8feee7f7.tar.gz
tk-5fab72b856ae6a195e0aaa5f4b1a18ae8feee7f7.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/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
}