Changed Fl_Multi_Browser behaviour on the Mac OS platform so multiple selection
is done by cmd-click rather than ctrl-click, as is expected on this platform. Also, updated the documentation to describe the effects of ctrl-, shift- and cmd-clicks. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
d7d57f9113
commit
da6dff26fc
@ -29,8 +29,10 @@
|
||||
which lets the user select any set of the lines. The user interface
|
||||
is Macintosh style: clicking an item turns off all the others and
|
||||
selects that one, dragging selects all the items the mouse moves over,
|
||||
and shift + click toggles the items. This is different then how forms
|
||||
did it. Normally the callback is done when the user releases the
|
||||
and ctrl + click (Cmd+click on the Mac OS platform) toggles the items.
|
||||
Shift + click extends the selection until the clicked item.
|
||||
This is different from how forms did it.
|
||||
Normally the callback is done when the user releases the
|
||||
mouse, but you can change this with when().
|
||||
<P>See Fl_Browser for methods to add and remove lines from the browser.
|
||||
*/
|
||||
|
@ -813,7 +813,7 @@ J1:
|
||||
} else {
|
||||
void* l = find_item(my);
|
||||
whichway = 1;
|
||||
if (Fl::event_state(FL_CTRL)) { // toggle selection:
|
||||
if (Fl::event_state(FL_COMMAND)) { // toggle selection:
|
||||
TOGGLE:
|
||||
if (l) {
|
||||
whichway = !item_selected(l);
|
||||
|
Loading…
Reference in New Issue
Block a user