diff options
| author | Ian MacArthur <imacarthur@gmail.com> | 2009-12-22 14:17:22 +0000 |
|---|---|---|
| committer | Ian MacArthur <imacarthur@gmail.com> | 2009-12-22 14:17:22 +0000 |
| commit | cccf37522b4551a7c9f686030f1a955fb6aaf62f (patch) | |
| tree | f8c3e37cca296e964dd4abd072a67bc8acf6354f | |
| parent | a5a5850e1031be3c627c92063e95010cde8bf3bb (diff) | |
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
| -rw-r--r-- | FL/Fl.H | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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;} /** |
