-
Enhancement
-
Resolution: Fixed
-
P3
-
1.1.8, 1.3.0, 1.4.0
-
beta
-
generic, sparc
-
generic, solaris_7
The old InputEvent modifiers have same values for keyboard
and mouse buttons. So in certain situations there is no way
to distinguish which one is pressed or when more than one is held
simultanously. These situations would include the cases when more
than one mouse button is down at the same time, or when a
modifier key is used to modify a mouse event.
ingrid.yao@Eng 2001-05-10
CAP program member complains the new InputEvent modifiers are
likely to cause many programs to fail since many programmers
probably do something like:
[...]
if (e.getModifiers() == InputEvent.BUTTON1_MASK)
{
}
[...]
and mouse buttons. So in certain situations there is no way
to distinguish which one is pressed or when more than one is held
simultanously. These situations would include the cases when more
than one mouse button is down at the same time, or when a
modifier key is used to modify a mouse event.
ingrid.yao@Eng 2001-05-10
CAP program member complains the new InputEvent modifiers are
likely to cause many programs to fail since many programmers
probably do something like:
[...]
if (e.getModifiers() == InputEvent.BUTTON1_MASK)
{
}
[...]
- duplicates
-
JDK-4350717 Keyboard actions do not work if mouse button is pressed
-
- Closed
-
-
JDK-4312913 RFE: Provide a better distinction for interpreting mouse events...
-
- Closed
-
- relates to
-
JDK-4352790 Mouse enter/exit events generated without modifiers
-
- Resolved
-
-
JDK-4404363 Fix for 4387938 broke Drag & Drop on all supported platforms
-
- Closed
-
-
JDK-4353201 The MouseEvent modifiers have wrong value with 2 buttons pressed
-
- Closed
-