We have an existing application using dijit controls. The previous behavior on pre FF6 when the control is focused is it also gets selected. However, starting FF6 the control is no longer selecting all text. The problem now is there are a lot of dojo.byId('ctrlId').focus() in our code. I can fix that by adding a dojo.byId('ctrlId').select() code after each focus call. but I am looking for a more global way to fix this.
I tried overriding the focus method but it does not work.
HTMLFormElement.prototype._select = HTMLFormElement.prototype.select;
dijit.prototype.focus = function() {
this.focus.apply();
this.select.apply();
}
Any ideas?