How to perform a click in a button??
I need to click in a button if the user press enter or tab inside a Text.
In Android i use the function performClick();



txtName.addKeyListener(new KeyListener() {

public void keyReleased(KeyEvent e) {
if((e.character == SWT.TAB) || (e.character == SWT.CR)){
//Click to btnCreate
}
}

public void keyPressed(KeyEvent e) {
// TODO Auto-generated method stub

}
});