summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-20 21:07:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-20 21:07:40 (GMT)
commitaa1c6622027872fa5412d9bb438494b3e54588ea (patch)
tree50735c838af1763d8c3ba325a9f07aae7c016dfc /library/text.tcl
parentf16e08b414d8bc9e5f66ab5038f0dc33e7111633 (diff)
downloadtk-aa1c6622027872fa5412d9bb438494b3e54588ea.zip
tk-aa1c6622027872fa5412d9bb438494b3e54588ea.tar.gz
tk-aa1c6622027872fa5412d9bb438494b3e54588ea.tar.bz2
Now (really) swap Buttons 2|3 on MacOS. Adapt all bindings not depending on aqua any more
Diffstat (limited to 'library/text.tcl')
-rw-r--r--library/text.tcl27
1 files changed, 7 insertions, 20 deletions
diff --git a/library/text.tcl b/library/text.tcl
index 67a787a..7f56c0b 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -429,27 +429,14 @@ bind Text <Control-h> {
%W see insert
}
}
-if {[tk windowingsystem] ne "aqua"} {
- bind Text <Button-2> {
- if {!$tk_strictMotif} {
- tk::TextScanMark %W %x %y
- }
- }
- bind Text <B2-Motion> {
- if {!$tk_strictMotif} {
- tk::TextScanDrag %W %x %y
- }
- }
-} else {
- bind Text <Button-3> {
- if {!$tk_strictMotif} {
- tk::TextScanMark %W %x %y
- }
+bind Text <Button-2> {
+ if {!$tk_strictMotif} {
+ tk::TextScanMark %W %x %y
}
- bind Text <B3-Motion> {
- if {!$tk_strictMotif} {
- tk::TextScanDrag %W %x %y
- }
+}
+bind Text <B2-Motion> {
+ if {!$tk_strictMotif} {
+ tk::TextScanDrag %W %x %y
}
}
set ::tk::Priv(prevPos) {}