Albrecht Schlosser wrote: >> but maybe rename FL_CONTROL to<something> as that is >> a bit confusing...
For FLTK 2, FL_CONTROL was removed due to confusion. There is no direct replacement, instead there are three "meta" shifts (not to be confused with META!): name Win,X OSX COMMAND CTRL META ACCELERATOR ALT CTRL OPTION META ALT Translated into "the key the user sees": COMMAND Ctrl Command ACCELERATOR Alt Ctrl OPTION Windows Option This scheme worked well for Nuke in making it port to OSX with minimal code changes. Note that it is a 3-way shuffle of the keys. The name "ACCELERATOR" was chosen because it is the shortcut for menu accelerators on Windows. Using the ctrl key for this on OSX appears to be what Microsoft did when they did their ports of their Windows software. The name "OPTION" was chosen because that is what is printed on the Apple key. Note: In the current CVS of FLTK2 OPTION of Win/X is META|ALT, this I think is a mistake. It was done because the only use in Nuke was to see if it was held down during mouse drags, and due to X11 window managers eating either the Windows or Alt key, we made both work. A better solution would be to test OPTION|ACCELERATOR on all platforms. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
