Bug 144593 - Keep active cell focused on col/row selection (if it is part of the resulting selection)
Summary: Keep active cell focused on col/row selection (if it is part of the resulting...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Selection
  Show dependency treegraph
 
Reported: 2021-09-18 19:32 UTC by al.le
Modified: 2021-11-08 08:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description al.le 2021-09-18 19:32:19 UTC
Description:
The situation is:

- I'm editing a sheet; the selected cell is somewhere in the middle of the screen

- Now I mark some columns by moving the mouse over the columns headers and draggin it.

At this moment, the cell selection jumps to the top most visible cell in the last marked column.

This is a little bit pity since I lose the editing context. Could we retain the current cell in this situation?

As a side note: The border around the marked columns is not thick. The other major spread sheet draws a think border around the selection. Is it the intention in Calc?

Steps to Reproduce:
1. Edit a sheet, place cursor to A4
2. Mark columns A and B by dragging the mouse over their headers


Actual Results:
Cursor is now at B1

Expected Results:
Cursor remains at A4


Reproducible: Always


User Profile Reset: No



Additional Info:
Editing context is lost.
Comment 1 al.le 2021-09-20 06:27:50 UTC
On a second thought: The rationale in the current behaviour could be that it's always guaranteed that the selected cell is within the selected area.

So I'm now not that sure that this ticket should lead to changes. But I'd be interested in the opinions of other users.
Comment 2 Roman Kuznetsov 2021-10-23 15:33:26 UTC
Looks as a bug but I'm not sure

UX-team, we need your opinion here

ps: Excel moves the cursor to A1 cell in that case >_<
Comment 3 Heiko Tietze 2021-10-25 08:20:16 UTC
(In reply to al.le from comment #1)
> On a second thought: The rationale in the current behaviour could be that
> it's always guaranteed that the selected cell is within the selected area.

Eike, do we need the focused cell to be in the current selection? The request to keep the selection makes actually sense.
Comment 4 Eike Rathke 2021-10-25 10:46:41 UTC
Yes we need the current cell cursor be part of the selection. Otherwise it may be unclear whether the result is a multi-selection or not, or for a following Sort action for example the current cell's column is taken.

However, that's not the question of the original request as the current cell was A4 when selecting A:B so already within the selected range.

Anyway, clicking a column header for selection focuses the cell in the first *visible* row of the column. If you PageDown once to have, for example, rows 38 to 75 on the screen and go to current cell A42 and then click column A header, the active cell will be A38. I see no reason why the active cell shouldn't be kept *if* it was part of the resulting selection already.