DotNetNuke and Browser-Independent Default Buttons
When you have multiple submittable forms on a web page (such as a search and a checkout), you have to somehow let the browser know which form to submit when the user presses
ClientAPI to the rescue! We did a little poking around and found the RegisterKeyCapture method in DotNetNuke's ClientAPI. This takes an input control (such as a text box), a postback control (such as a button) and an ASCII key identifier. So, to make your search box work, it's ClientAPI.RegisterKeyCapture(txtSearch, btnSearch, 13); since 13 is the ASCII code for <enter>. There's also an override that takes plain ol' javascript instead of a postback control.
Enjoy!