Hi,

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,
<code>
mainWin = Ext.extend(Ext.Window,{
id:'mainWinComp',
...
});
</code>

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

<code>Ext.getCmp('mainWinComp').focus();</code>

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