Arrow keys and onkeypress

Discussion in 'Javascript' started by pazabo, Mar 25, 2007.

  1. pazabo

    pazabo Guest

    Hi,

    Does anybody know why doesn't onkeypress catch up/down arrow keys
    while it catches left/right arrows? My only supposition is that up/
    down keys are used for moving between form elements, anyway does
    anybody know any solution to this problem?

    Thanks,
    Pazabo
     
    pazabo, Mar 25, 2007
    #1
    1. Advertising

  2. pazabo

    Evertjan. Guest

    pazabo wrote on 25 mrt 2007 in comp.lang.javascript:

    > Does anybody know why doesn't onkeypress catch up/down arrow keys
    > while it catches left/right arrows?


    The why is impossible to answr since, in IE7 at least,
    not one of the arrow keys returns anything:

    Try IE:

    <body onkeypress='this.innerHTML=event.keyCode'>
    </body>


    > My only supposition is that up/
    > down keys are used for moving between form elements, anyway does
    > anybody know any solution to this problem?
    >




    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Mar 25, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob R. Ainscough
    Replies:
    0
    Views:
    715
    Rob R. Ainscough
    Jul 20, 2005
  2. jitrowia
    Replies:
    2
    Views:
    383
    Dennis Lee Bieber
    Jan 26, 2008
  3. Bob Morvay

    Arrow keys and the datagrid...

    Bob Morvay, Apr 28, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    182
    Bob Morvay
    Apr 29, 2005
  4. Magnus Holm

    Tab and arrow-keys in gets

    Magnus Holm, Feb 20, 2007, in forum: Ruby
    Replies:
    1
    Views:
    114
    Michael Fellinger
    Feb 21, 2007
  5. sylver
    Replies:
    4
    Views:
    192
    sylver
    Aug 2, 2007
Loading...

Share This Page