the multi-selection mode of listbox has a rather non-
intuitive "feature": when holding down ctrl key and
clicking on an unselected item it selects it - so far so
good - when clicking on a selected item nothing changes.
One would expect (from experience with other listboxes)
that clicking on a selected item with Ctrl-key held would
de-select the item.
Tested with: BWidget 1.6 and CVS-Head as of 2004-09-
16
Logged In: YES
user_id=59057
This is a nice bug in ListBox::_mouse_select.
it should read like:
set ret [eval selection [list $path] ...]
switch -- $cmd {
....
}
return $ret
The return value is required in ListBox::_multiple_select
Correct.
Test script:
pack [ListBox .l -selectmode multiple]
.l insert end 2 -text a
.l insert end 1 -text b
.l insert end 0 -text c
The code was there but there was an error->Fixed in cvs