Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: onkeydown and onkeyup Date: Mon, 19 Mar 2012 15:49:21 -0700 Lines: 32 Message-ID: <9sprflF1dqU1@mid.individual.net> References: <2eu2m718r5tn1jp7uah2dsv3aa8gj3gi6q@4ax.com> <97a3ca53-f073-4409-abb1-da50fb5cdd2a@a20g2000yql.googlegroups.com> <9sp6n1Fqr9U1@mid.individual.net> X-Trace: individual.net lAA8wW0jGbLld+TItq66Nwc6QwfkfMKqsGaP0Lkv8zW6Tn9Qp7 Cancel-Lock: sha1:/orGUJoN8GI3mnd62ZCPrlIhujQ= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: csiph.com comp.lang.javascript:12909 Gene said: > The particular use case addressed by my filtering is > people accustomed to pressing to terminate an input. I do not > want that to result in a form submit. Neither do I. My user want the key to move to (what we both consider to be) the next logical input field. As an example, in *my* case I have a vertical column of phone numbers and email addresses, that she will frequently be entering/modifying. She should move up/down thru these fields so as not to drive herself 'bananas' moving her hand off/on the mouse to click to change focus. > Your code appears to be just control focus management. (I could > be missing something.) I have saved it in case I need to revisit the > area, but I need more than that. Some of my keyboard event handling > is for control values. (I have some neat code for date entry. Well, > I think it is neat.) That set of code is meant to allow the user to move logically up and down and sideways thru the input fields in a quick, efficient manner (using ,, , , , , etc To submit she *must* deliberately focus (using her mouse) on the button -- where I go into action examining/validating the complete set of input fields. and using my Red/Yellow/Green backgrounds to praise or chastise her :)) -Mel