>>> 
>>> #ifdef MAC
>>>        copy_shortcut = FL_META+'c';
>>> #else
>>>     copy_shortcut = FL_CTRL+'c';
>>> #endif
>> 
>> We have already FL_COMMAND defined to FL_META on Mac and FL_CTRL
>> elsewhere. Isn't that sufficient ?
> 
>       Right, but there's no string equivalent for accessing the FL_COMMAND
>       macro.
> 
>       Currently we have codes for ctrl, shift, and alt:
> 
>               "^c"    -- ctrl c
>               "+c"    -- shift c
>               "#c"    -- alt c
> 
>       ..and probably need an additional code for 'meta' (the "windows key" on 
> windows/linux,
>       the "cloverleaf" key on mac)
> 
>       and what's being suggested is to also have a code to access FL_COMMAND,
>       which means different things on different platforms, ie:
> 
>               "!c"    -- 'command' c (ctrl-c on win, cmd-c on mac)

Yes, and as Bill correctly pointed out, the modifier character can still be 
used as a regular shortcut if it stands alone. So if you feel like it, you can 
use a character for every modifier which IIRC is SHIFT, CTRL, META, ALT, 
COMMAND and the badly named CONTROL.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to