PDA

View Full Version : Focus event on windows don't fired



csanchezr85
22 May 2012, 8:14 AM
Hello,

I've been trying to fire teh "focus" event when an ext window is focused, but nothing happens when occurs this. I'm working with 4.1 version of extJS, and other events, like "beforeclose" or "minimize" are executing properly. Could be an error related to this event? (I've seen in other thread this event is failing with another component).

Thanks.

mitchellsimoens
25 May 2012, 12:13 PM
What are you attempting to do?

csanchezr85
27 May 2012, 10:38 PM
I want to fire an event to change the ext windows header style when an ext windows has the focus, in order to show the focused element clearly.

mitchellsimoens
28 May 2012, 4:11 AM
Try the activate event.

csanchezr85
28 May 2012, 5:58 AM
It didn't work for me, but I got a kind of simulation of the focus event: I've get the html element directly by its id, and I add the event listener to the div that contains the window. It's rare that some events aren't fired when are assigned to an ext window.

mitchellsimoens
28 May 2012, 6:02 AM
activate works great for me. Fires when it is made the active wndow

tzuccolo2001
21 Nov 2012, 10:19 AM
Yes activate works, but deactivate doesn't. What is that?