diff options
author | culler <culler> | 2020-04-15 17:24:51 (GMT) |
---|---|---|
committer | culler <culler> | 2020-04-15 17:24:51 (GMT) |
commit | ef67d7e478dcdd96b095c80fbf1d95330ee35117 (patch) | |
tree | fc8f026a7f5ad5bdbe8b27f50f3d07c3195c0c4b /library/entry.tcl | |
parent | f098336486ba362a5b694d93a949fe6e8b23891a (diff) | |
download | tk-ef67d7e478dcdd96b095c80fbf1d95330ee35117.zip tk-ef67d7e478dcdd96b095c80fbf1d95330ee35117.tar.gz tk-ef67d7e478dcdd96b095c80fbf1d95330ee35117.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 2aab934..9cc9f6f 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 <2> { - if {!$tk_strictMotif} { - ::tk::EntryScanMark %W %x +if {[tk windowingsystem] ne "aqua"} { + bind Entry <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 <3> { + if {!$tk_strictMotif} { + ::tk::EntryScanMark %W %x + } + } + bind Entry <B3-Motion> { + if {!$tk_strictMotif} { + ::tk::EntryScanDrag %W %x + } } } |