diff options
author | Felipe Heidrich <fheidric> | 2009-10-02 18:46:49 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2009-10-02 18:46:49 +0000 |
commit | 9b206a3ef3da346ba734676d2f43256fbdc58e5a (patch) | |
tree | ede6235204e59c884b7ed48f69a43fba53eec914 | |
parent | 1f43a5824a5f5316727bf8f3dd62777737252de9 (diff) | |
download | eclipse.platform.swt-9b206a3ef3da346ba734676d2f43256fbdc58e5a.tar.gz eclipse.platform.swt-9b206a3ef3da346ba734676d2f43256fbdc58e5a.tar.xz eclipse.platform.swt-9b206a3ef3da346ba734676d2f43256fbdc58e5a.zip |
Bug 291229 - KeyEvent#stateMask also contains mouse buttons
3 files changed, 9 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyEvent.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyEvent.java index 82ea3deedf..2d167de06b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyEvent.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyEvent.java @@ -83,11 +83,11 @@ public class KeyEvent extends TypedEvent { public int keyLocation; /** - * the state of the keyboard modifier keys at the time - * the event was generated, as defined by the key code - * constants in class <code>SWT</code>. + * the state of the keyboard modifier keys and mouse masks + * at the time the event was generated. * - * @see org.eclipse.swt.SWT + * @see org.eclipse.swt.SWT#MODIFIER_MASK + * @see org.eclipse.swt.SWT#BUTTON_MASK */ public int stateMask; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseEvent.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseEvent.java index 19da7695a8..28eef55a26 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseEvent.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseEvent.java @@ -42,6 +42,9 @@ public class MouseEvent extends TypedEvent { /** * the state of the keyboard modifier keys and mouse masks * at the time the event was generated. + * + * @see org.eclipse.swt.SWT#MODIFIER_MASK + * @see org.eclipse.swt.SWT#BUTTON_MASK */ public int stateMask; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Event.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Event.java index 36f29691e1..d887e9d760 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Event.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Event.java @@ -184,7 +184,8 @@ public class Event { * depending on the event, the state of the keyboard modifier * keys and mouse masks at the time the event was generated. * - * @see org.eclipse.swt.SWT + * @see org.eclipse.swt.SWT#MODIFIER_MASK + * @see org.eclipse.swt.SWT#BUTTON_MASK */ public int stateMask; |