Bug 149459 - [FORMATTING] Tab key do not select shapes by turn if they are copy-pasted and moved by arrow key
Summary: [FORMATTING] Tab key do not select shapes by turn if they are copy-pasted and...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2022-06-05 00:15 UTC by LeroyG
Modified: 2024-06-19 15:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
File to test. (8.72 KB, application/vnd.oasis.opendocument.text)
2022-06-05 00:15 UTC, LeroyG
Details
Second test file. (8.42 KB, application/vnd.oasis.opendocument.text)
2022-06-05 00:24 UTC, LeroyG
Details
As mentioned in previous comment. (9.04 KB, application/vnd.oasis.opendocument.text)
2022-06-19 13:46 UTC, LeroyG
Details
File with two horizontal lines (8.50 KB, application/vnd.oasis.opendocument.text)
2022-06-19 19:49 UTC, LeroyG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LeroyG 2022-06-05 00:15:31 UTC
Created attachment 180569 [details]
File to test.

1. Created a line in a new Writer document.
2. Copy, paste, and move to the right with arrow key.
3. Select one line.
4. Press tab key.
5. Move the first line to the right, 
6. Press tab key. 
7. Select the (now) middle line.
8. Press tab key.

Actual behavior:
After 4: Selection jumps from whichever shape to the original (leftmost) line.
After 6: Selection jumps and stay in the leftmost line.
After 8: Selection will not jump.

Expected behavior:
Selection jumps from one shape to other, in insert order.

Additional info:
If do you create three lines (without copy&paste), tab key will select all of them by turn.

Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_ES); UI: en-US
Calc: CL
Comment 1 LeroyG 2022-06-05 00:24:20 UTC
Created attachment 180570 [details]
Second test file.

If in step 2, do you move the lines with mouse, tab key jumps to some lines but skip some others. Tested with four and six lines.
Comment 2 Dieter 2022-06-19 05:12:45 UTC
I confirm it with

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded


Additional information
It works as expected if you move lines with touchpad and not with arrow key
Comment 3 LeroyG 2022-06-19 13:45:26 UTC
(In reply to Dieter from comment #2)
Thanks to add more info.

> It works as expected if you move lines with touchpad and not with arrow key

If you equate mouse with touchpad, not every time. There is one (or more) unknow variable (line height, first line position relative to text margin, zoom level, etc.) that I can not detect.

New steps:
1. Create a vertical line (holding Shift)
2. Copy, paste
3. Move to the right with pointer (touchpad or mouse) (also can be with right arrow key)
4. Press Tab key

Actual result:
Selection remains in left line.

Adding a new test file with only two lines following the steps above.
Comment 4 LeroyG 2022-06-19 13:46:23 UTC
Created attachment 180830 [details]
As mentioned in previous comment.
Comment 5 LeroyG 2022-06-19 13:48:55 UTC
Snap to Grid is off.

Will test later on Linux.
Comment 6 LeroyG 2022-06-19 19:34:55 UTC
Reproducible with:
Version: 7.2.3.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 1; OS: Linux 5.3; UI render: default; VCL: gtk3
Locale: es-MX (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 7 LeroyG 2022-06-19 19:49:48 UTC
Created attachment 180836 [details]
File with two horizontal lines

If the inserted shapes are horizontal lines, and both are at the same vertical level (one beside the other), selection jumps and stay in the leftmost line.

If one line vertical position is changed (with pointer or arrow keys) selection jumps between both. Maybe this can explain why with touchpad/mouse (if snap to grid is disabled) allow to jump between all shapes.

Testing with the second test file: if vertical position is changed, selection with tab works well. If there are two lines aligned, selection do not works well.

Changing zoom level (to refresh screen) do not help.
Comment 8 QA Administrators 2024-06-19 03:16:11 UTC Comment hidden (obsolete)
Comment 9 LeroyG 2024-06-19 15:36:28 UTC
Reproducible with:

Version: 7.6.7.2 (x86) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: en-US
Calc: threaded

Version: 24.2.3.2 (x86) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: en-US
Calc: threaded

Version: 24.2.4.2 (x86) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: es-ES
Calc: threaded
Comment 10 LeroyG 2024-06-19 15:37:49 UTC
Reproducible with:

Versión: 6.4.7.2 (x86)
Id. de compilación: 639b8ac485750d5696d7590a72ef1b496725cfb5
Subprocs. CPU: 4; SO: Windows 6.1 Service Pack 1 Build 7601; Repres. IU: predet.; VCL: win; 
Configuración regional: es-AR (es_MX); Idioma de IU: es-ES
Calc: threaded