Hello,
I am using EEF to generate Master detail forms.
The generated code looks like this -
name.addKeyListener(new KeyAdapter() {
/**
* @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
*
*/
@Override
@SuppressWarnings("synthetic-access")
public void keyPressed(KeyEvent e) {
if (e.character == SWT.CR) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ProjectPropertiesEditionPartForm.this, Fusion_portalViewsRepository.Project.Properties.portalName, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, portalName.getText()));
}
}
});
Here the user is forced to press the Return key for the input to be accepted. Any reason the modifyListener is not used instead?
Is there any way to change the code generation to change this?
[Updated on: Wed, 10 April 2013 06:55]
Report message to a moderator