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.1.8.1 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 fml2
Modified: 2023-06-24 11:43 UTC (History)
5 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 fml2 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 fml2 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.
Comment 5 Buovjaga 2022-01-24 09:00:59 UTC
Btw. bug 82404 suggests to move active cell to A1 when doing a corner-click "select all".
Comment 6 LeroyG 2022-01-26 20:13:56 UTC
Why it is needed that A4 remains as the active cell? What is the use?

When selecting with keyboard (Ctrl+A, Ctrl+Spacebar, Shift+Spacebar, Shift+whatever), A4 remains as the active cell.

When selecting a cell range (no complete rows or columns), the resulting active cell is the first (in time) selected of the last range selected; no matter if it is done with mouse or keyboard, with standard selection, extending selection or adding selection.

So why, when selecting rows/columns, the active cell is the leftmost/upper of the last (in time) row/column selected? Why not the first row/column selected?

There is a official name for the corner-click "select all"? Header of headers? :-) I can not find it just now.
Comment 7 Heiko Tietze 2022-01-27 08:06:19 UTC
(In reply to LeroyG from comment #6)
> Why it is needed that A4 remains as the active cell?

The input goes into the selected cell.