diff options
author | culler <culler> | 2020-04-15 17:42:15 (GMT) |
---|---|---|
committer | culler <culler> | 2020-04-15 17:42:15 (GMT) |
commit | 87b398bc1696bbcd7294aebf2f61dcd36b0e3e82 (patch) | |
tree | be5e5df10749c257bb966c7140b08c62512392fc /library/entry.tcl | |
parent | 1199fb12aa7e4ac580c3693185b4297f8d9e4df2 (diff) | |
parent | ef67d7e478dcdd96b095c80fbf1d95330ee35117 (diff) | |
download | tk-87b398bc1696bbcd7294aebf2f61dcd36b0e3e82.zip tk-87b398bc1696bbcd7294aebf2f61dcd36b0e3e82.tar.gz tk-87b398bc1696bbcd7294aebf2f61dcd36b0e3e82.tar.bz2 |
Apply a patch from Christopher Chavez which correctly deals with the fact that Apple uses the middle mouse button for Button 3.
Diffstat (limited to 'library/entry.tcl')
-rw-r--r-- | library/entry.tcl | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/library/entry.tcl b/library/entry.tcl index fa9a74f..02384da 100644 --- a/library/entry.tcl +++ b/library/entry.tcl @@ -293,14 +293,27 @@ bind Entry <<TkAccentBackspace>> { # A few additional bindings of my own. -bind Entry <Button-2> { - if {!$tk_strictMotif} { - ::tk::EntryScanMark %W %x +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 + bind Entry <B2-Motion> { + if {!$tk_strictMotif} { + ::tk::EntryScanDrag %W %x + } + } +} else { + bind Entry <Button-3> { + if {!$tk_strictMotif} { + ::tk::EntryScanMark %W %x + } + } + bind Entry <B3-Motion> { + if {!$tk_strictMotif} { + ::tk::EntryScanDrag %W %x + } } } |