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

            Bug ID: 174470
           Summary: View does not scroll back to cursor on Shift+Arrow
                    after Undo of an empty comment
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When inserting a comment in Writer and immediately undoing it while the comment
is still empty, the document view stops auto-scrolling back to the cursor
position when using Shift+Arrow keys from a scrolled-away viewport. Text
selection itself (e.g., Shift+Arrow) still works, only the automatic viewport
jump to the cursor is broken until the user creates/edits a non-empty comment
or reopen the document.

Steps to Reproduce:
1. Open a multi-page text document in LibreOffice Writer.
2. Place the cursor somewhere in the text.
3. Insert a comment and leave it empty.
4. Immediately press Ctrl+Z or click Undo to remove the empty comment.
5. Scroll away using the mouse wheel or scrollbar so the cursor is out of view.
6. Press Shift+Right Arrow to select text and jump back to the cursor or press
only Right Arrow to jump back.

Actual Results:
The text is selected at the cursor position, but the viewport does not scroll
back to bring the cursor into view.

Expected Results:
Just like before inserting the comment (or after undoing a non-empty comment),
pressing Shift+Arrow keys or arrow key alone should automatically scroll the
document view back to the cursor position.


Reproducible: Always


User Profile Reset: No

Additional Info:
If any text is typed into the comment before undoing it (or before deleting and
undoing it), the auto-scroll behavior on Shift+Arrow keys remains intact.
Testet under Linux 
Version: 26.8.0.3 (X86_64)
Build ID: 680(Build:3)
CPU threads: 16; OS: Linux 6.18; UI render: default; VCL: kf6 (cairo+wayland)
Locale: de-DE (de_DE.utf8); UI: de-DE
26.8.0-2
Calc: threaded

Tested under Windows 23H2
Version 26.8.0.3

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

Reply via email to