Just add a keyDown handler on the ComboBox and check if event.code == Key.ENTER and do your thing I guess.  The ComboBox’s default enter behavior is to simply close the dropdown if it’s open.

 

Matt

 


From: Dimitrios Gianninas [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 11:54 AM
To: [email protected]
Subject: RE: [flexcoders] Enter key on ComboBox

 

Nope, tried it, plus it is not the purpose of the "enter" event if you read the docs.

 

Jimmy Gianninas

Software Developer - Optimal Payments Inc.

 

 


From:Jeff Tapper [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 2:52 PM
Subject: Re: [flexcoders] Enter key on ComboBox

Try the "Enter" event.  It should be dispatched when the enter key is pressed
with the Combo in focus.

--
Jeff Tapper
jeff.mxdj.com


Quoting Dimitrios Gianninas <[EMAIL PROTECTED]>:

> I know there may be no solution to this, but I'll ask anyways.
>
> I have a ComboBox and when it had focus, the user can select the correct
> item by using the up/down arrows. You would think hitting enter the key
> would cause an event to fire, or to trigger the click event on the
> default button of the current form (ex.: <Form
> defaultButton="btnSubmit"/>)... but it doesn't.
>
> Anyone have a work around?
>
> Jimmy Gianninas
> Software Developer - Optimal Payments Inc.
>
>



AVIS IMPORTANT

WARNING

Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme.

The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified thatany disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.



Reply via email to