From cccf37522b4551a7c9f686030f1a955fb6aaf62f Mon Sep 17 00:00:00 2001 From: Ian MacArthur Date: Tue, 22 Dec 2009 14:17:22 +0000 Subject: 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 --- FL/Fl.H | 2 ++ 1 file changed, 2 insertions(+) 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;} /** -- cgit v1.2.3