Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding onkeypress to process Enter key on textbox drop
Message
 
 
À
13/12/2012 11:24:02
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01559443
Message ID:
01559577
Vues:
29
>>>Not sure what you are referring to here - a simple input control of type text should not trigger a submit whether auto-fill is enabled or not.
>>>Can you show the html for the relevant control ?
>>
>>The reason is does is because I put onkeypress at the textbox level. The problem is that those browser supporting the auto complete provides a dropdown list on top of it and pressing Enter on that one does as if the Enter key would have been pressed at the textbox level. IMHO, it should not. The goal here is to be able to detect that.
>
>So what is it doing on Enter that you don't want it to do - I thought that you said you just wanted it not to Submit?

I think the idea is to distinguish Enter pressed in that drop-down selection list vs. Enter in the textbox itself.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform