>I've seen this when the focus ends up on a combo box. There is a hack
>available that involves trapping the keydown event (onkeydown) on the
><select> tag and looking for the Enter key. If this is not your specific
>case then maybe you can adapt it. I got this out a very good JS book:
>
><select name="SearchMode" searchModeKeyDown(event)">
>...
>
><!--- detect Enter key on the dropdown and submit the form --->
>function searchModeKeyDown(evt) {
> evt = (evt) ? evt : event;
> var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which :
>evt.keyCode);
> if ((charCode == 13) || (charCode == 3)) {
> DoSearchBoxSubmit();
> return false;
> }
> return true;
>}
>
>-----Original Message-----
>From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 30, 2004 2:03 PM
>To: CF-Talk
>Subject: Re: Enter key not working to submit?
>
>
>Morgan Senkal wrote:
>
>> I've always assumed that on a form page with a submit button, hitting the
>enter key will automatically submit the form. However, now I have run
>across a situation where it does not work; I have to manually click the
>submit button to submit the form, hitting enter does nothing. Anyone ever
>run across this before?
>
>That is up to the user agent. Some do, some don't.
>
>Jochem
>
>--
>I don't get it
>immigrants don't work
>and steal our jobs
> - Loesje
> _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

