title: XPages - onkeypress event not triggering click properly
body: <p>I created a search field (id:searchField) and a search button (id:searchButton) using Xpages Custom Controls. I added an onkeypress event on the search field such that it will trigger a click to the searchButton. The searchButton will then reload the page but with url parameters coming from the search field. The problem is that the page reloads but the search parameters are not added to the URL <b>when I press ENTER in the search field</b>, but works properly when I press searchButton. Here are the codes I used:</p>
  
  <p><b>(code added to the onkeypress of searchField)</b></p>
  
  <pre>
  if (typeof thisEvent == 'undefined' && window.event) { thisEvent = window.event; }
  if (thisEvent.keyCode == 13)
  {
      document.getElementById("#{id:searchButton}").click();
  }
  </pre>
  
  <p><b>(code added to the onclick of searchButton)</b></p>
  
  <pre>
  window.location.href = "test.xsp?search=" + document.getElementById("#{id:searchField}").value;
  </pre>
  
  <p>I tested it in IE and Firefox, both have problems. I created a sample HTML file and it worked correctly. Is this a bug of XPages or am I missing something here?</p>