summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan MacArthur <imacarthur@gmail.com>2009-12-22 14:17:22 +0000
committerIan MacArthur <imacarthur@gmail.com>2009-12-22 14:17:22 +0000
commitcccf37522b4551a7c9f686030f1a955fb6aaf62f (patch)
treef8c3e37cca296e964dd4abd072a67bc8acf6354f
parenta5a5850e1031be3c627c92063e95010cde8bf3bb (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.H2
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 363a9ede5..7cb9b94a5 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -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;}
/**