Intercepting the keyboard again

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabian

    #1

    Intercepting the keyboard again

    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!


  • Fabian

    #2
    Re: Intercepting the keyboard again

    Fabian hu kiteb:
    [color=blue]
    > 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?[/color]

    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!


    Comment

    Working...