Intercepting the keyboard again

Discussion in 'Javascript' started by Fabian, Nov 28, 2003.

  1. Fabian

    Fabian Guest

    I have a script that intercepts the arrow keys. I also have a dropdown
    menu using SELECT tags. However, when the dropdown menu has the focus, I
    do not want the script to intercept the keyboard. How do I detect
    whether the dropdown form object has focus?


    --
    --
    Fabian
    Visit my website often and for long periods!
    http://www.lajzar.co.uk
     
    Fabian, Nov 28, 2003
    #1
    1. Advertising

  2. Fabian

    Fabian Guest

    Fabian hu kiteb:

    > I have a script that intercepts the arrow keys. I also have a dropdown
    > menu using SELECT tags. However, when the dropdown menu has the
    > focus, I do not want the script to intercept the keyboard. How do I
    > detect whether the dropdown form object has focus?


    I found a solution. I set an ignore variable with onfocus and onblur for
    that dropdown, and then test that ignore variable before running any
    commands based on keyboard inputs.


    --
    --
    Fabian
    Visit my website often and for long periods!
    http://www.lajzar.co.uk
     
    Fabian, Nov 28, 2003
    #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. Timothy Parez
    Replies:
    0
    Views:
    385
    Timothy Parez
    Mar 6, 2004
  2. Al
    Replies:
    1
    Views:
    397
    RickB
    Jul 1, 2003
  3. Nick
    Replies:
    2
    Views:
    349
  4. Stu
    Replies:
    1
    Views:
    353
    William F. Robertson, Jr.
    Feb 22, 2005
  5. Mike Barnard
    Replies:
    34
    Views:
    1,040
    Arne Vajhøj
    Jul 20, 2010
Loading...

Share This Page