Add default focus method on Form Widget

The editable tree is calling this method to set the focus on the edited widget
so it must be part of the API of Widget.

issue7661
review54321002
This commit is contained in:
Cédric Krier committed 2018-09-02 10:56:43 +02:00
1 parent 0d545bd4d4
commit d20385d9fc
1 file changed
+4 -1
+4 -1
View File
@@ -1115,7 +1115,10 @@ function eval_pyson(value){
} else {
this.el.show();
}
}
},
focus: function() {
this.el.focus();
},
});
Sao.View.Form.TranslateDialog = Sao.class_(Object, {