diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-20 21:07:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-20 21:07:40 (GMT) |
commit | aa1c6622027872fa5412d9bb438494b3e54588ea (patch) | |
tree | 50735c838af1763d8c3ba325a9f07aae7c016dfc /library/entry.tcl | |
parent | f16e08b414d8bc9e5f66ab5038f0dc33e7111633 (diff) | |
download | tk-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.tcl | 25 |
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 -- |