Event keyPressed = new Event();
keyPressed.keyCode = keyCode;   
keyPressed.type = SWT.KeyDown;
display.post(keyPressed);

The code above works well: its key events lead to text selection.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira