manolo gouy wrote:
>> Can we change the definition of "^" this late?
>> Historically, "^c" has always meant Ctrl-C on all platforms, including
>> macs,
>> IIRC.
>
> -1 on changing the meaning of "^" on the mac. It should be ctrl
> as for all platforms.
Right, and I agree.
But hey, when the inventor of the toolkit (Bill) recommends something..
;)
>> With new codes, "!c" could mean Command-C on macs, and Ctrl-C on
>> windows/linux.
>>
>> So one would use this to define the shortcut for e.g. the Edit/Copy
>> menu,
>> and it would work across all platforms, and avoid having to do:
>>
>> #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)
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev