https://bugs.documentfoundation.org/show_bug.cgi?id=157533

            Bug ID: 157533
           Summary: Unpredictable cursor behaviour after deselecting a
                    math formula
           Product: LibreOffice
           Version: 7.6.1.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When deselecting a math formula that is the first element of a line in a table
cell, the keyboard is unresponsive and the cursor cannot be moved using the
arrow keys, unless I use the mouse to reposition it.

Steps to Reproduce:
1. Create a new table with the Default Style.
2. Insert a math formula at the start of any line, whether on the first line of
the cell, after an explicit line break or a line break caused by word wrapping.
3. Press "Escape" once to exit the math formula editor. The math formula is now
selected.
4. Press "Escape" once more.

Actual Results:
The cursor is now positioned at the start of a line, before the formula, and
cannot be moved using the keybord (using the arrow keys).
Pressing "Enter" puts you back into the formula editor.
Pressing "Delete" puts you at the start of the document.
Other keyboard keys seem to have no effect.

Expected Results:
The cursor should be positioned after the formula, and be responsive to
keyboard inputs.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
More generally, the cursor shows very erratic behaviour.

Normally, after deselecting a math formula by pressing "Escape", the cursor
should be placed *after* the math formula, and the cursor should be responsive
to keyboard inputs.

Outside tables, the expected behaviour sometimes happens. Other times however,
unrelated to whether the formula is the first element of a line and depending
on the formula’s content or position, the cursor is placed before the formula
after deselecting the formula, but the cursor is still responsive to keyboard
inputs, and the "Enter" and "Delete" keys behave normally (as opposed to the
behaviour described here in "Actual Results").

Inside any table, after deselecting a formula that is *not* positioned at the
start of a line, the cursor will be placed before the formula, whereas it
should be placed after. The cursor remains responsive to keyboard inputs
however, and the "Enter" and "Delete" keys behave normally (as opposed to the
behaviour described here in "Actual Results").

Inside tables with style "None", after deselecting a math formula that is at
the start of a line, the cursor is repositioned at the end of the previous
table cell. The keyboard behaves normally.

Inside tables with style "Default", after deselecting a math formula that is at
the start of a line, the problem described here happens.

Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to