EventUtils.synthesizeKey() dispatches keydown event, keypress event and keyup event if the event type isn't specified. However, widgets don't dispatch keypress event for modifier keys. Therefore, it shouldn't dispatch it.
Created attachment 583070 [details] [diff] [review]
Part.1 EventUtils.synthesizeKey() shouldn't dispatch keypress event for modifier keys if the event type isn't specified
Do you have a better idea for the name of "isKeypressFiredKey"?
Created attachment 583072 [details] [diff] [review]
Part.2 Fix new test failure
These tests should test the unexpected keypress events since some platforms may have the bug.
# Is it better to insert an assertion in XP level code?