diff options
author | treectrl <treectrl> | 2005-05-28 21:57:17 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2005-05-28 21:57:17 (GMT) |
commit | 56a8e59c6c28bb31337cd01f1849cb0d922d304e (patch) | |
tree | 736e5abf382c45cf886701c3f9a1cfabba510d2b /library | |
parent | 168caf812044e84a51f0394bca4d3b90489a47ce (diff) | |
download | tktreectrl-56a8e59c6c28bb31337cd01f1849cb0d922d304e.zip tktreectrl-56a8e59c6c28bb31337cd01f1849cb0d922d304e.tar.gz tktreectrl-56a8e59c6c28bb31337cd01f1849cb0d922d304e.tar.bz2 |
Change <Control-ButtonPress-1> binding on Aqua to <Command-ButtonPress-1>, since Command should be used for discontinuous selection on OSX.
Diffstat (limited to 'library')
-rw-r--r-- | library/treectrl.tcl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/library/treectrl.tcl b/library/treectrl.tcl index 725a1a0..ea74d1b 100644 --- a/library/treectrl.tcl +++ b/library/treectrl.tcl @@ -22,7 +22,12 @@ bind TreeCtrl <Shift-ButtonPress-1> { set TreeCtrl::Priv(buttonMode) normal TreeCtrl::BeginExtend %W [%W item id {nearest %x %y}] } -bind TreeCtrl <Control-ButtonPress-1> { +# Command-click should provide a discontinuous selection on OSX +switch -- [tk windowingsystem] { + "aqua" { set modifier Command } + default { set modifier Control } +} +bind TreeCtrl <$modifier-ButtonPress-1> { set TreeCtrl::Priv(buttonMode) normal TreeCtrl::BeginToggle %W [%W item id {nearest %x %y}] } |