diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2015-12-28 14:06:50 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2015-12-28 17:08:55 +0100 |
| commit | 4bdba4af85af29f3468dbfc2c626edebe8315911 (patch) | |
| tree | c834794a8a55e9f57c773386f05f824f7c682d6f /addons/web/static/src/js/framework/session_instance.js | |
| parent | 79ce860090fe20656d2e62a86b53f826becd61d0 (diff) | |
[FIX] web_editor: inline editor should not devore focus
The FieldTextHtmlSimple widget would focus on itself when changing its
value not by direct user interaction. But if this change was coming
from next/previous record, or an onchange that was breaking the
"autofocus" heuristic for field in Odoo.
With this commit:
- the autofocus heuristic is kept,
- if focused, selection is set at the end if it is possible on the
browser, else (old internet explorer and not visible field) the
selection is at the beginning.
opw-660486
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
