[FIX] web_editor: inline editor should not devore focus
[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

microcom/odoo,laslabs/odoo,hip-odoo/odoo,bplancher/odoo,laslabs/odoo,ygol/odoo,stephen144/odoo,Elico-Corp/odoo_OCB,hip-odoo/odoo,hip-odoo/odoo,ygol/odoo,ygol/odoo,stephen144/odoo,sysadminmatmoz/OCB,laslabs/odoo,microcom/odoo,sysadminmatmoz/OCB,Elico-Corp/odoo_OCB,dfang/odoo,Elico-Corp/odoo_OCB,laslabs/odoo,storm-computers/odoo,hip-odoo/odoo,dfang/odoo,storm-computers/odoo,dfang/odoo,bplancher/odoo,storm-computers/odoo,hip-odoo/odoo,microcom/odoo,Elico-Corp/odoo_OCB,sysadminmatmoz/OCB,Elico-Corp/odoo_OCB,dfang/odoo,ygol/odoo,ygol/odoo,laslabs/odoo,stephen144/odoo,bplancher/odoo,microcom/odoo,sysadminmatmoz/OCB,dfang/odoo,Elico-Corp/odoo_OCB,microcom/odoo,microcom/odoo,sysadminmatmoz/OCB,stephen144/odoo,ygol/odoo,storm-computers/odoo,stephen144/odoo,sysadminmatmoz/OCB,laslabs/odoo,bplancher/odoo,storm-computers/odoo,storm-computers/odoo,dfang/odoo,sysadminmatmoz/OCB,ygol/odoo,bplancher/odoo,stephen144/odoo,bplancher/odoo,hip-odoo/odoo