sproutcore/sproutcore — Issue #695: SC.AlertPane (+other modal Pane) have to take the focus
Author: j-Anderson
Created: 2012-01-20 09:04:42+00:00
State: open

HI

when you are typing in a textFieldView, and if in the same time you append an AlertPane, the focus keep place in the textFieldView and you can continue typing this is not modal.

Maybe when appending, the pane have to take the focus ? sames for all panes ? just modal pane ?

We write this little fix :
SC.Pane.prototype.append = function() {
var ret = this.appendTo(document.body);
this.layer().focus();
return ret;
};