odoo/odoo#238390

Created by fw-bot
Merged at 031c3093cbbd559024bde73611bb3adcffc7a991

Statuses:

label
odoo-dev:master-saas-18.2-fix-single-cell-selection-adsa-481085-fw
head
1f8dc975d873d0136083fd1a93705581c0c4fb3d
merged
2 days ago by Editor, Adnan Saiyed (adsa)
odoo/odoo
saas-18.2 #235959
saas-18.3 #238007
saas-18.4 #238024
19.0 #238030
master #238390

[FIX] html_editor: select single cell from backward

Current behavior before PR:

Steps to reproduce:

  • In an m × n table, type some text inside a cell.
  • Place the cursor at the end of the text.
  • Hold Shift and repeatedly press ArrowLeft until the entire cell becomes selected.

Once the cell content is fully selected, the cell itself is selected along with its adjacent cell, instead of only the current cell.

Desired behavior after PR:

After selecting all text, the current cell alone should become selected. Pressing Shift + ArrowLeft again should then extend the selection to the adjacent cell.

task-5268801


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #238030
Forward-Port-Of: #235959