From d20385d9fccc2202f9dec5a45d10cf58d95fa270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 2 Sep 2018 10:56:43 +0200 Subject: [PATCH] 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 --- src/view/form.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/form.js b/src/view/form.js index 54d0032665..45860832a0 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -1115,7 +1115,10 @@ function eval_pyson(value){ } else { this.el.show(); } - } + }, + focus: function() { + this.el.focus(); + }, }); Sao.View.Form.TranslateDialog = Sao.class_(Object, {