ActionEvent.getModifiers does not return the correct value for shift + left mouse click on Button. The value returned by call to ActionEvent.getModifiers does not include ActionEvent.SHIFT_MASK modifier. This is reproducible with tiger and mustang.
Steps to reproduce:
1. Compile and run the attached code.
2. Click on the button with shift key pressed and see the terminal window for output.
The testcase checks for ActionEvent.SHIFT_MASK and InputEvent.SHIFT_DOWN_MASK.
1. On Motif Toolkit, check for InputEvent.SHIFT_DOWN_MASK returns true and ActionEvent.SHIFT_MASK returns false.
2. On XToolkit, check for InputEvent.SHIFT_DOWN_MASK returns false and ActionEvent.SHIFT_MASK returns true.
3. On Windows, check for InputEvent.SHIFT_DOWN_MASK returns true and ActionEvent.SHIFT_MASK returns false.
###@###.### 10/25/04 13:07 GMT