I have the following test case:
When I press any key, it works ( I get the key name), but when I press "Space" or "Enter", nothing happens. The setSaveOnEnter(true) is also not working, I think because of the same reason.
Using Samrtgwt 5.0p power 5.0-p20150919 and Chrome 47.0.2526.106 (64-bit) on a mac (10.11.2)
Code:
public void onModuleLoad() { final VLayout vlayout = new VLayout(); DynamicForm df = new DynamicForm(); TextItem ti = new TextItem(); df.setFields(ti); df.setSaveOnEnter(true); ti.addKeyDownHandler(new KeyDownHandler() { @Override public void onKeyDown(KeyDownEvent event) { SC.say(event.getKeyName()); if (event.getKeyName().equals("Enter")) { SC.say("enter"); } } }); ti.setSaveOnEnter(true); vlayout.addMember(df); vlayout.draw(); }
Using Samrtgwt 5.0p power 5.0-p20150919 and Chrome 47.0.2526.106 (64-bit) on a mac (10.11.2)
Comment