From b56d9ff820768fba0b43da21de2b2c54f57c5e8b Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 7 Mar 2013 21:59:58 +0000 Subject: Proposed patch by kjnash. Committed in [1f184c7377] --- library/tk.tcl | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/library/tk.tcl b/library/tk.tcl index 267a7bb..06902f9 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -379,9 +379,8 @@ switch -exact -- [tk windowingsystem] { event add <> event add <> event add <> - if {[info exists tcl_platform(os)] && $tcl_platform(os) eq "Darwin"} { - event add <> - } + # On Darwin/Aqua, buttons from left to right are 1,3,2. On Darwin/X11 with recent + # XQuartz as the X server, they are 1,2,3; other X servers may differ. event add <> event add <> @@ -457,10 +456,10 @@ switch -exact -- [tk windowingsystem] { event add <> } "aqua" { - event add <> - event add <> - event add <> - event add <> + event add <> + event add <> + event add <> + event add <> event add <> event add <> @@ -468,24 +467,24 @@ switch -exact -- [tk windowingsystem] { # See http://support.apple.com/kb/HT1343 event add <> event add <> - event add <> - event add <> + event add <> + event add <> event add <> - event add <> + event add <> event add <> - event add <> + event add <> event add <> event add <> event add <> event add <> event add <> - event add <> + event add <> event add <> - event add <> + event add <> event add <> - event add <> + event add <> event add <> - event add <> + event add <> # Not official, but logical extensions of above. Also derived from # bindings present in MS Word on OSX. event add <> -- cgit v0.12