Name: mf23781 Date: 01/03/2000
User interfaces on existing platforms can distinguish between right and
left modifier keys. To provide competitive interfaces in Java, access to
this information must be provided. This can be done, while maintaining
compability, by adding modifier constants to InputEvent for:
RIGHT_ALT_MASK
LEFT_ALT_MASK
RIGHT_CTRL_MASK
LEFT_CTRL_MASK
RIGHT_SHIFT_MASK
LEFT_SHIFT_MASK
RIGHT_META_MASK
LEFT_META_MASK
If the right alt key is down, for example, then it sets both the
RIGHT_ALT_MASK and the ALT_MASK. If the left alt key is down, it sets both
the LEFT_ALT_MASK and the ALT_MASK. That maintains backwards compatibility,
but lets developers detect the difference between right and left.
(Review ID: 99523)
======================================================================