-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.1.7, 1.2.0, 1.3.0
-
generic, x86
-
generic, linux
getModifiers() always returns null for ActionEvents.
It should either be made to work, or deprecated.
Here is a comment from Amy on this:
In truth I don't think modifiers belong in ActionEvents (they
are supposed to be higher level than a raw input event).
The reason that property is there is to support backward compatibility
with the old event model where modifiers were supported for action
events (it was some wierd hotjavaism).
But as you can see, they don't even work anyways. So, I suggest
we deprecate getModifiers() on ActionEvent....
It should either be made to work, or deprecated.
Here is a comment from Amy on this:
In truth I don't think modifiers belong in ActionEvents (they
are supposed to be higher level than a raw input event).
The reason that property is there is to support backward compatibility
with the old event model where modifiers were supported for action
events (it was some wierd hotjavaism).
But as you can see, they don't even work anyways. So, I suggest
we deprecate getModifiers() on ActionEvent....
- duplicates
-
JDK-4083048 No modifier key info in ActionEvents from swing buttons
-
- Closed
-
- relates to
-
JDK-4026963 getModifiers() in class ActionEvent always returns 0
-
- Resolved
-