Bug 152297

Summary: Track comments in the Navigator also by focus inside the comment box
Product: LibreOffice Reporter: Rafael Lima <rafael.palma.lima>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: ilmari.lauhakangas, telesto
Priority: medium    
Version: 7.5.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103030    

Description Rafael Lima 2022-11-29 14:15:20 UTC
When you click a comment box in a Writer document, the comment is not selected in the Navigator even when Comment Tracking is on.

Steps to reproduce:
1) Consider a document in Writer with multiple comments
2) Open the navigator and check if "Comment tracking" is enabled (right-click the Comments entry in the navigator and check Comment tracking)
3) Click inside a comment in the document; notice that it doesn't get selected in the navigator
4) Using the "Previous/Next" buttons in the navigator will move the cursor to the expected comment; however the selected comment in the Navigator will not change

In summary, I believe comment tracking should select the comment in the navigator when the cursor is inside a comment box in the document.

Reproducible with current master

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 24d7431876e87eba700a9f141dc8e030143a92ad
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 Jim Raykowski 2022-12-12 00:29:14 UTC
The Navigator tracks content at the cursor position in the document view. Here is where this is done for fields and comments: sw/source/uibase/utlui/content.cxx SwContentTree::UpdateTracking function // fields, comments
Comment 2 Buovjaga 2023-03-08 08:31:15 UTC
Repro. It does track, if you position cursor to the comment marker in the canvas.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 65f672b27f84682764f924a3da3cecbafc88b278
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 8 March 2023
Comment 3 lomacar 2023-10-17 22:48:24 UTC
It does not track for me in 7.6.2.1. Comment tracking is enabled, when I place the cursor in comments in the document the navigator pane does nothing.