Am 11.04.19 um 07:05 schrieb Nicolas:
<Shift-Button-1> on a header label triggers the command specified as the
value of the -labelcommand2 option. The most common value of this
option is tablelist::addToSortColumns, which *extends* the list of sort
columns and sorts the items based on the columns indicated by the
modified list. On the other hand, <Control-Button-1> on a body item
*toggles* the selection state of that item. Hence it is not quite as
you stated, namely that "labelcommand2 behavior is like Ctrl+Click but
is triggered by Shift+Click".
Apart from this, the main reason for the choice of <Shift-Button-1>
rather than <Control-Button-1> in the case of the header labels was
that, historically, on the Mac the Control key in combination with a
mouse click plays a special role, being that the original Mac mouse had
only one button. Due to this fact, Tablelist handles the
<Control-Button-1> event on the Mac like <Button-3> on other systems
(both giving rise to the <<Button3>> virtual event).
--
Csaba Nemethi
http://www.nemethi.de mailto:
csaba....@t-online.de