Project: SWT
Bug 291229 KeyEvent#stateMask also contains mouse buttons
Reported: 2009-10-02 13:00:57 | Status: resolved fixed

HEAD (but problem is not new) The KeyEvent#stateMask field also contains mouse buttons, but its Javadoc only tells about "keyboard modifier keys". It also mentions "key code constants", but e.g. SWT#CTRL says it's an "event mask". I would add these references to make it clear what masks are meant: * @see org.eclipse.swt.SWT#MODIFIER_MASK * @see org.eclipse.swt.SWT#BUTTON_MASK

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyEvent.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseEvent.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Event.java