Hi Guys,

I want to provide keyboard support for my web-application. For normal 
keys I do not have any problem. 

But mainly I have 2 problems with flex implementation part:

1. I am unable to fire events on function keys. i.e. F1,F5 etc. I will 
appriciate any help from you guys. How can I block all of the browser 
events? 
If I will have to create some javascript for that, where shall I place 
javascript and how shall I call it from my ".mxml" or ".as" files?

Note: I just want to block browser events and fire my own events, not 
to kill them :).

2. I noticed that when I move from one window to another window, my 
focus is lost and keyDownEvents does not support anymore untill I 
click anywhere in application. 

Even When the application is loaded for first time, we need to click 
in order to get the keDownEvent work. So that is how flex-applications 
work? Do we have any solution for these kind of "focus" problems?

I came to know two ways those are:
 application.addEventListener(); and this.stage.addEventListener(); 
so what is main difference between these two and which one is mroe 
preferable? Please let me know.

Thanks & Regards,
Savan

Reply via email to