Bug 139877 - Cell editing does not allow arrows within the cell if it starts with =
Summary: Cell editing does not allow arrows within the cell if it starts with =
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-24 08:02 UTC by Dan Dascalescu
Modified: 2021-09-20 23:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Google Sheets handles this better (130.46 KB, image/gif)
2021-01-24 08:02 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Dascalescu 2021-01-24 08:02:34 UTC
Created attachment 169120 [details]
Google Sheets handles this better

Scenario: after you've started typing a formula in a cell, you realize the first character was wrong, e.g. you wanted to start with a parenthesis.

Goal: use the keyboard to change the first character

1. In a cell, type `=1 + 2 + 3`
2. Press Left arrow

Even though it doesn't make sense to insert a cell reference at this point (the cursor is not after an operand), Calc will take pressing the arrow keys as navigation among cells.

3. Press Backspace to delete the `+ 3` part.
4. Try again to press Left arrow to hopefully reach `1`.

Google Sheets handles this correctly, as seen in the attached screencast.

In Calc, you need to leave the incorrect formula by pressing Enter, then return to editing the cell.
Comment 1 Regina Henschel 2021-01-24 20:55:42 UTC
If you start editing by clicking the equal sign next to the input line, you still write in the cell and then the arrow keys move the cursor as expected.
Comment 2 [REDACTED] 2021-01-24 22:43:42 UTC
Type F2 (Cell Edit Mode) then LEFT ARROW key.
Comment 3 [REDACTED] 2021-01-24 22:49:51 UTC
From my perspective not a bug but intended behavior (and F2 being the designed method to change the edit mode).
Comment 4 Ross Johnson 2021-09-20 08:58:24 UTC
Calc's behaviour is not a bug.

The screencast shows a specific scenario where cell A1 is being edited. Google sheets is moving the cursor on left arrow because there's no cell to the left of the edited cell. However, the screencast shows it inserting cell addresses to the right when the right arrow is used.

In the same situation, editing cells in column A, Calc refuses to move the cursor left. Either way is ok, although the behaviour of Calc could be preferable IMO in not setting up a false expectation/muscle memory.

What does Google Sheets do when editing cell B2? When the left arrow is pressed I expect it inserts the address of cell B1. But then, pressing left arrow repeatedly, does it start to move the cursor in cell B2 to the left?

Except for this minor difference in interpretation, both Calc and Google Sheets appear to do the same thing. If possible they move to adjacent cells and insert the address of that cell when the next key is pressed. The last inserted cell remains highlighted and the next arrow keypress is relative to that cell.