-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
generic
-
generic
I have a frame with a TextField and I have added an action listener to the text field. On pressing 'ENTER' with multiple modifiers, I am noticing the following behaviors -
Motif -
Pressing CTRL+ENTER triggers ActionEvent with ctrl modifier.
Shift/Alt + Enter - no action
Win32 -
Pressing SHIFT+ENTER triggers ActionEvent with shift modifier.
CTRL/ALT + ENTER - no action
XToolkit -
ActionEvent is not triggered when SHIFT or CTRL or ALT key is down.
Also on the above toolkits, keeping left button down and pressing ENTER triggers ActionEvent with button1 mask where as modifiers field is empty for other mouse buttons.
Not sure what is the correct behavior and motif seems to differ from XToolkit. This may be considered as a regression.
Run the attached test and try pressing ENTER in the text field with SHIFT/CTRL/ALT and the 3 mouse buttons.
Motif -
Pressing CTRL+ENTER triggers ActionEvent with ctrl modifier.
Shift/Alt + Enter - no action
Win32 -
Pressing SHIFT+ENTER triggers ActionEvent with shift modifier.
CTRL/ALT + ENTER - no action
XToolkit -
ActionEvent is not triggered when SHIFT or CTRL or ALT key is down.
Also on the above toolkits, keeping left button down and pressing ENTER triggers ActionEvent with button1 mask where as modifiers field is empty for other mouse buttons.
Not sure what is the correct behavior and motif seems to differ from XToolkit. This may be considered as a regression.
Run the attached test and try pressing ENTER in the text field with SHIFT/CTRL/ALT and the 3 mouse buttons.