mirror of https://github.com/fltk/fltk
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:
parent
a5a5850e10
commit
cccf37522b
2
FL/Fl.H
2
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;}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue