Menu

#526 bwidget listbox multi selection handles ctrl key wrong

closed-fixed
bwidget (187)
5
2009-06-30
2004-09-16
No

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

Discussion

  • Konrad Rosenbaum

    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

     
  • Harald Oehlmann

    Harald Oehlmann - 2009-06-30
    • status: open --> closed-fixed
     
  • Harald Oehlmann

    Harald Oehlmann - 2009-06-30

    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

     
MongoDB Logo MongoDB