Re: How to implement Enter Key Submit Form in GWT
You can use KeyCodes.KEY_ENTER instead of 13, for clarity On Friday, February 25, 2011 2:59:48 PM UTC+1, El Mentecato Mayor wrote: If you want to do it when a PasswordTextBox is on focus for example (this is from my sign-in page): passwordTextBox.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { if (((int)event.getCharCode()) == 13) { // User hit Enter key submitForm(); } } }); On Feb 24, 4:55 pm, Néstor Boscán nesto...@gmail.com wrote: Hi I need to simulate the Enter Key submit form in GWT where hay hit the enter key and the form is submitted. Any ideas on how to acomplish this? Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2Zx-LlHqSDsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to implement Enter Key Submit Form in GWT
If you want to do it when a PasswordTextBox is on focus for example (this is from my sign-in page): passwordTextBox.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { if (((int)event.getCharCode()) == 13) { // User hit Enter key submitForm(); } } }); On Feb 24, 4:55 pm, Néstor Boscán nesto...@gmail.com wrote: Hi I need to simulate the Enter Key submit form in GWT where hay hit the enter key and the form is submitted. Any ideas on how to acomplish this? Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to implement Enter Key Submit Form in GWT
Search for EnterButton in this group. At the top is a class everyone should have. Below that is a discussion of using sinkEvents to get key down events from Widgets that normally don't pass them. Greg On Feb 25, 7:59 am, El Mentecato Mayor rogelio.flo...@gmail.com wrote: If you want to do it when a PasswordTextBox is on focus for example (this is from my sign-in page): passwordTextBox.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { if (((int)event.getCharCode()) == 13) { // User hit Enter key submitForm(); } } }); On Feb 24, 4:55 pm, Néstor Boscán nesto...@gmail.com wrote: Hi I need to simulate the Enter Key submit form in GWT where hay hit the enter key and the form is submitted. Any ideas on how to acomplish this? Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to implement Enter Key Submit Form in GWT
Hi I need to simulate the Enter Key submit form in GWT where hay hit the enter key and the form is submitted. Any ideas on how to acomplish this? Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.