View Full Version : Escaping nested windows

1 Sep 2010, 7:11 AM

I am trying nested windows. A window that opens another window.

For example,
'main-win' is a window that internally calls another window, say 'another-win'.

Now if I close the 'another-win' window by ESCAPE, 'main-win' visualizes. But now I press ESCAPE again to close 'main-win' window, it is not closing it, I mean the escape does not work.

To solve this, I placed

1.) id in 'main-win' like,
mainWin = Ext.extend(Ext.Window,{

2.) on close event of 'another-win' I used,


This works perfect, but want to know is there any other way to focus nested windows properly?