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. Advertisements

  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. Advertisements

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. amit
    Replies:
    0
    Views:
    535
  2. che
    Replies:
    2
    Views:
    695
  3. abcd

    Importing again and again

    abcd, Jun 8, 2006, in forum: Python
    Replies:
    9
    Views:
    550
    Maric Michaud
    Jun 9, 2006
  4. Replies:
    4
    Views:
    583
  5. Ò»Ê×Ê«

    A design problem I met again and again.

    Ò»Ê×Ê«, Apr 1, 2009, in forum: Python
    Replies:
    24
    Views:
    961
    Dennis Lee Bieber
    Apr 4, 2009
  6. Mike Barnard
    Replies:
    34
    Views:
    1,269
    Arne Vajhøj
    Jul 20, 2010
  7. Alexander Burger

    jsf 2.0 datatable reload again and again

    Alexander Burger, Sep 23, 2010, in forum: Java
    Replies:
    14
    Views:
    5,120
    Arved Sandstrom
    Sep 26, 2010
  8. Junkone
    Replies:
    2
    Views:
    162
    Junkone
    Sep 25, 2008
Loading...