ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.86k stars 1.09k forks source link

Adding a new line while editing cell contents after pressing home/end key puts the new line in the wrong position #2648

Open 9a3eedi opened 9 months ago

9a3eedi commented 9 months ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

7.5.1.23

Expected Behavior

While editing cell contents in a spreadsheet, which contains multiple lines of text, I press the home button to move the caret to the beginning of a line, and then press the alt+enter button to add a new line. I expect the new line to go before the line, and there should be a new line above the line being edited.

Actual Behavior

After pressing alt+enter, the new line appears at the last position of the caret before hitting the home button.

Reproduction Steps

  1. Open a spreadsheet and populate a cell with multiple lines of content
  2. Select the cell and edit one of the lines
  3. Press the home button, this will move the caret to the beginning of the line
  4. Press Alt+Enter

Additional information

I am using Manjaro Linux. The editor is installed via the official repositories. I was editing an excel sheet (.xlsx)

maruacat commented 8 months ago

Hello @9a3eedi Do you have a problem in the new version of the editor - 8.0.1.31? I tried to reproduce the problem in versions 8.0.1.31, 8.0.0.99 and 7.5.1.23 on Fedora 39 and Pop!_OS 22.04, but could not reproduce. If you are still having this problem, could you please attach a file that reproduces the problem and, if possible, a short video of the problem?

9a3eedi commented 8 months ago

Hi,

I do face the same issue on 8.0.1.31 as packaged in Manjaro. Attaching a file is not necessary, because this can be reproduced in a new file. Simply add multiline text to any file, then edit the contents of the cell in the formula bar, use the mouse to set the caret position to the middle of any line, then press the home button, and then press alt+enter to add a new line.

It might be worth mentioning the following, in case the issue is somewhere else:

I do have another computer (a desktop) running Manjaro and KDE over X11 and Nvidia graphics, and using a full 104-key keyboard. but I cannot remember if I encountered this issue there. I will test it out another time and get back to you.

If I get the chance, I will try to record a video of the issue occurring and post it here sometime soon.

maruacat commented 8 months ago

Hello @9a3eedi! Thanks for the additional information. I was able to reproduce the issue, so I've created bug #66822.