addItemTextBoxField.add(new AbstractBehavior(){ 
                          
                          private static final long serialVersionUID = 1L; 
                               @Override
                                public void 
onComponentTag(org.apache.wicket.Component
component,ComponentTag tag) {
                                 tag.put("onkeydown","if(event.keyCode==13){
document.getElementById('"+searchButtion.getMarkupId()+"').click();return
false;}"); 
                            }
                          }); 
                add(addItemTextBoxField);       

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Setting-a-button-press-on-hitting-the-enter-key-from-the-keyboard-tp1874539p4622841.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to