summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
diff options
context:
space:
mode:
authorsurles <surles>1998-08-03 18:29:50 (GMT)
committersurles <surles>1998-08-03 18:29:50 (GMT)
commit946102f185b1d07fb3384ac40dd4eceb19ea7623 (patch)
tree364b9c7d38c75e4106e124d5b14ebeaff81dc045 /library/text.tcl
parent622ca64595ff70d8ab17aad14471162b8031d86e (diff)
downloadtk-946102f185b1d07fb3384ac40dd4eceb19ea7623.zip
tk-946102f185b1d07fb3384ac40dd4eceb19ea7623.tar.gz
tk-946102f185b1d07fb3384ac40dd4eceb19ea7623.tar.bz2
Changed binding on <ButtonRelease-2> to be a binding on <<PasteSelection>>
Diffstat (limited to 'library/text.tcl')
-rw-r--r--library/text.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/text.tcl b/library/text.tcl
index 9191a03..586d7bf 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -86,11 +86,6 @@ bind Text <ButtonRelease-1> {
bind Text <Control-1> {
%W mark set insert @%x,%y
}
-bind Text <ButtonRelease-2> {
- if {!$tkPriv(mouseMoved) || $tk_strictMotif} {
- tkTextPaste %W %x %y
- }
-}
bind Text <Left> {
tkTextSetCursor %W insert-1c
}
@@ -254,6 +249,11 @@ bind Text <<Paste>> {
bind Text <<Clear>> {
catch {%W delete sel.first sel.last}
}
+bind Text <<PasteSelection>> {
+ if {!$tkPriv(mouseMoved) || $tk_strictMotif} {
+ tkTextPaste %W %x %y
+ }
+}
bind Text <Insert> {
catch {tkTextInsert %W [selection get -displayof %W]}
}