Modify Fl.H to add method Fl::event_command();

that matches the "portable" FL_COMMAND key modifier



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Ian MacArthur 2009-12-22 14:17:22 +00:00
parent a5a5850e10
commit cccf37522b
1 changed files with 2 additions and 0 deletions

View File

@ -779,6 +779,8 @@ public:
static int event_shift() {return e_state&FL_SHIFT;}
/** Returns non-zero if the Control key is pressed. */
static int event_ctrl() {return e_state&FL_CTRL;}
/** Returns non-zero if the FL_COMMAND key is pressed, either FL_CTRL or on OSX FL_META. */
static int event_command() {return e_state&FL_COMMAND;}
/** Returns non-zero if the Alt key is pressed. */
static int event_alt() {return e_state&FL_ALT;}
/**