Hey, I am running GWT on ubuntu and trying to learn by following the tutorial guide found on Google . I have a problem creating a register of a text field when the user presses the enter button. It works with an arbitrary definition, so I don't think this is a problem with the code. So it is probably KeyCodes.KEY_ENTERnot supported on Linux? What else can I write instead to read it when the user presses the enter button?
newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
public void onKeyPress(KeyPressEvent event) {
if (event.getCharCode() == KeyCodes.KEY_ENTER) {
addStock();
System.out.println("Foo");
}
}
});
source
share