From 73a1e7f60ef48ee697ee9cb7d79405a4e56b3e2f Mon Sep 17 00:00:00 2001 From: Hardik Prajapati Date: Thu, 30 Apr 2020 13:22:01 +0000 Subject: [FIX] web: select date/datetime value when tabbing in before this commit, tabbing into the date or datetime field input it has only focus, value is not selected. after this commit, navigate through a view in edit mode with the TAB key, when focus comes into date/dateetime field input then input is focused and value of date/datetime field is also get selected. task-2246593 closes odoo/odoo#51062 X-original-commit: 962e4e18b559d90aa3456c77035659ac8017501d Signed-off-by: Aaron Bohy (aab) Co-authored-by: Mohammed Shekha --- addons/web/static/src/js/fields/basic_fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index f5f59235a0c..bf225d7ea99 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -773,7 +773,7 @@ var FieldDate = InputField.extend({ */ activate: function () { if (this.isFocusable() && this.datewidget) { - this.datewidget.focus(); + this.datewidget.$input.select(); return true; } return false; -- cgit v1.2.3