Author: spitzak Date: 2007-06-05 17:32:35 -0400 (Tue, 05 Jun 2007) New Revision: 5873 Log: Added another symbol for portability between OS/X and other systems. OPTION is a set of flags to test for alt+dragging of things. On Windows+Linux it is either the Alt or the Windows key (this is mostly done to work around Linux window managers that eat Alt+click). On OS/X it is only the Alt key, as the command (Windows) key is used for command+click. For full OS/X matching you should make ctrl+click pop up the menu on OS/X only.
Modified: trunk/fltk/events.h Modified: trunk/fltk/events.h =================================================================== --- trunk/fltk/events.h 2007-06-05 15:56:31 UTC (rev 5872) +++ trunk/fltk/events.h 2007-06-05 21:32:35 UTC (rev 5873) @@ -180,10 +180,12 @@ ANY_BUTTON = 0x7f000000, /*!< Any mouse button (up to 8) */ #if defined(__APPLE__) ACCELERATOR = CTRL, + OPTION = ALT, COMMAND = META #else - ACCELERATOR = ALT, /*!< Same as ALT on Windows/Linux, same as CTRL on OS/X */ - COMMAND = CTRL /*!< Same as CTRL on Windows/Linux, same as META on OS/X */ + ACCELERATOR = ALT, //!< ALT on Windows/Linux, CTRL on OS/X, use for menu accelerators + COMMAND = CTRL, //!< CTRL on Windows/Linux, META on OS/X, use for menu shortcuts + OPTION = ALT|META //!< ALT|META on Windows/Linux, just ALT on OS/X, use as a drag modifier #endif }; _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
