By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,481 Members | 1,713 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,481 IT Pros & Developers. It's quick & easy.

Intercepting the keyboard again

P: n/a
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

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.