View Full Version : [CLOSED]Window.show steals focus.

29 Sep 2009, 7:03 AM
Window.show calls this.toFront()

This was reverted in rev 5345 to

toFront : function(e){
if(!e || !e.getTarget().focus){
return this;

So you can see that it will steal focus from whatever rendered field within it was focused.

What was the issue that prompted the reversion, could it be fixed?

This is causing problems now.

17 Oct 2009, 6:58 PM
I'm having a real problem with this and notifications. The parent window steals the focus, hides the notification and pretty much renders things useless. It's a real mess if the parent is modal.

Once you more than one window has been created, even if only one is open and the others are minimized, it's almost impossible to predict whether a notification is going to be displayed or hidden behind the open parent.

A fix/pointer would be wonderful...

18 Oct 2009, 3:01 AM
Set the defaultButton config to the ID of the Component that you want it to focus on show.

19 Oct 2009, 6:21 AM
Simple - thank you