On 11/26/12 16:41, corvid wrote:
> In Fl_Tree, why do space and left click behave differently?
> Looking in the source, I just noticed, for instance, how in the 
> FL_TREE_SELECT_SINGLE case,
> ctrl-space deselects all, but left click always does select_only for an item.
> I see that clicking _not_ on an item deselects all, but I have

        Sounds like a bug.

        Seems like CTRL-SPACE should toggle the selected item.

        In Fl_Browser, the behavior for FL_HOLD_BROWSER is:

                SPACE      == select
                CTRL-SPACE == select

                CLICK      == select
                CTRL-CLICK == select

        ..seems the way to deselect is to mouse-click outside the list.
        Offhand I couldn't determine how to toggle; perhaps there's no 'toggle'
        in that mode because 'something' should always be selected (even though
        clicking off the list clears the selection).

        In order to retain the user's ability to deselect equally from both
        keyboard and mouse, IMHO Fl_Tree should be changed so that CTRL-CLICK
        toggles just like CTRL-SPACE.

        Curious what you think.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to