[jQuery] Re: Identify last keeypess

2009-01-21 Thread James Hughes
To: jQuery (English) Subject: [jQuery] Re: Identify last keeypess Thanks again. On reflection I think you are right James. I should probably disable autocomplete for this field and doing so would resolve my issue. However, I've taken a quick look at the nocomplete plugin and that's not really

[jQuery] Re: Identify last keeypess

2009-01-21 Thread rob303
From: jquery-en@googlegroups.com on behalf of rob303 Sent: Tue 20/01/2009 16:40 To: jQuery (English) Subject: [jQuery] Re: Identify last keeypess Thanks again.  On reflection I think you are right James.  I should probably disable autocomplete for this field and doing so would resolve my

[jQuery] Re: Identify last keeypess

2009-01-20 Thread James Hughes
Rob, Is this some sort of autocomplete text box or is it a select input? James From: jquery-en@googlegroups.com on behalf of rob303 Sent: Tue 20/01/2009 13:44 To: jQuery (English) Subject: [jQuery] Identify last keeypess Hi, I've been searching the web

[jQuery] Re: Identify last keeypess

2009-01-20 Thread rob303
Hi James, Thanks for the reply. It's just a standard text input: input class=login_input type=text name=user value= / When the user clicks and starts to type the browser may, depending on what's been entered before, give a list of options. Some users might use the down or up arrow keys to

[jQuery] Re: Identify last keeypess

2009-01-20 Thread Stephan Veigl
haven't tested it, but what happens if you try: var lastKeyCode = 0; // submit the login form if the user hits enter $('.login_input').keypress(function(event) { if(event.keyCode == 13 lastKeyCode != UP lastKeyCode != DOWN ) { $('#login').submit(); } lastKeyCode = event.keyCode; });

[jQuery] Re: Identify last keeypess

2009-01-20 Thread James Hughes
] Re: Identify last keeypess Hi James, Thanks for the reply. It's just a standard text input: input class=login_input type=text name=user value= / When the user clicks and starts to type the browser may, depending on what's been entered before, give a list of options. Some users might use

[jQuery] Re: Identify last keeypess

2009-01-20 Thread rob303
Thanks again. On reflection I think you are right James. I should probably disable autocomplete for this field and doing so would resolve my issue. However, I've taken a quick look at the nocomplete plugin and that's not really what I want as it breaks some other functionality I have on those