authCb, authCb);
}
-function handleKeyPress(e, formId, focusId)
+function handleKeyPress(e)
{
var key;
if(window.event)
if(key == 13 || key == 10)
{
- onFormSubmitEventHandler();
- focusElement = document.getElementById(focusId);
- if (focusElement)
- focusElement.focus();
+ button = document.getElementById('button');
+ button.focus();
+ button.click();
+
return false;
}
else
-->
<td width="100%">
<form id="searchForm" name="search" style="display: none">
- <input id="query" type="text" onKeyPress="return handleKeyPress(event, 'searchForm')" />
+ <input id="query" type="text" onKeyPress="return handleKeyPress(event)" />
<input id="button" type="submit" value="go" /><a id="hidden" href=""></a>
</form>
</td>