summaryrefslogtreecommitdiffstats
path: root/library/entry.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/entry.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/entry.tcl')
-rw-r--r--library/entry.tcl25
1 files changed, 6 insertions, 19 deletions
diff --git a/library/entry.tcl b/library/entry.tcl
index 6539af7..f95d6bd 100644
--- a/library/entry.tcl
+++ b/library/entry.tcl
@@ -293,28 +293,15 @@ bind Entry <<TkAccentBackspace>> {
# A few additional bindings of my own.
-if {[tk windowingsystem] ne "aqua"} {
- bind Entry <Button-2> {
- if {!$tk_strictMotif} {
- ::tk::EntryScanMark %W %x
- }
- }
- bind Entry <B2-Motion> {
- if {!$tk_strictMotif} {
- ::tk::EntryScanDrag %W %x
- }
- }
-} else {
- bind Entry <Button-3> {
- if {!$tk_strictMotif} {
+bind Entry <Button-2> {
+ if {!$tk_strictMotif} {
::tk::EntryScanMark %W %x
- }
}
- bind Entry <B3-Motion> {
- if {!$tk_strictMotif} {
+}
+bind Entry <B2-Motion> {
+ if {!$tk_strictMotif} {
::tk::EntryScanDrag %W %x
- }
- }
+ }
}
# ::tk::EntryClosestGap --