Trapping Function keys in Flex
I have been trying to make an application which needs to launch functions on the press of Function keys (F1-F12). However, I have faced a problem when I press F1,F3,F4 keys...these keys launch the default behavior associated with IE (Help,Find,etc.)
I have found a way around to solve this by interpreting the keyboard events in JavaScript and blocking the default behavior. Click here to see an example I have developed using it.
To view the JavaScript code, Right-Click on the IE page to view source.
There are 2 drawbacks to this method
1. You cannot focus on any other window as the application window would try to gain focus all the time.
2. If you have a textbox within the application, you would not be able to type in it, since the focus would be on the IE window rather than being on the swf object.
(View Source Enabled)




1 comments:
hi,
However, the two drawbacks are not good for applcations. have you any idea?
Post a Comment