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.
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.