Bug 156515 - Writer tables exit from table shortcut Alt+Enter must be type twice to exit table [in end of lists]
Summary: Writer tables exit from table shortcut Alt+Enter must be type twice to exit t...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2023-07-29 08:25 UTC by Davide
Modified: 2023-08-10 16:25 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example page to check the issue (14.64 KB, application/vnd.oasis.opendocument.text)
2023-07-31 08:41 UTC, Davide
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davide 2023-07-29 08:25:10 UTC
Description:
When needed to go out from a table you must type Alt+Enter.
From 5.4 (I don't know the behaviour in previous versions) the first time you type produces a new paragraph into the table, the second time let's you exit from the table producing a new paragraph into the document.

Steps to Reproduce:
1.create a table
2.insert at least 1 text row
3.Exit the table using Alt+Enter

Actual Results:
A new paragraph is created into the table

Expected Results:
The cursor exits the table and a new paragraph is produced outside the table, in the document


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: CL threaded
Comment 1 Roman Kuznetsov 2023-07-29 16:26:19 UTC
Hm, Alt+Enter works as I expected only if text cursor is in left top or in right bottom cell of the table.

In first case I inserted the empty paragraph before table and in second - cursor moved to next paragraph after table.

And this is correct behavior for me. 

If the text cursor in any another cell of the table then Alt+Enter does nothing.

Could you please describe your problem more detail step-by-step?
Comment 2 Davide 2023-07-31 05:57:35 UTC
Steps have been described:

A text flow contains a table with 1 row with 2 columns and a row with single column
I need to exit the table to continue to write into the text flow
I put the cursor at the end of the last cell of the table and type Alt+Enter
A new empty paragraph is generated
I type again Allt+Enter
A new paragraoh is generated outside the table.

Note that this doesn't happen inside a single or multiple columns table, I mean, not a table with 1 row with 2 columns and a row with single column.
I should send an attachment to better explain but I don't know wether thie is possible.
Thank you.
Comment 3 Roman Kuznetsov 2023-07-31 08:28:38 UTC
(In reply to Davide from comment #2)

> I should send an attachment to better explain but I don't know wether thie
> is possible.

There is a link "Add an attachment" above your Description
Comment 4 Davide 2023-07-31 08:41:16 UTC
Created attachment 188669 [details]
Example page to check the issue
Comment 5 Daveo 2023-07-31 09:02:33 UTC
(In reply to Davide from comment #2)
> Steps have been described:
> 
> A text flow contains a table with 1 row with 2 columns and a row with single
> column
> I need to exit the table to continue to write into the text flow
> I put the cursor at the end of the last cell of the table and type Alt+Enter
> A new empty paragraph is generated
> I type again Allt+Enter
> A new paragraoh is generated outside the table.
> 
> Note that this doesn't happen inside a single or multiple columns table, I
> mean, not a table with 1 row with 2 columns and a row with single column.
> I should send an attachment to better explain but I don't know wether thie
> is possible.
> Thank you.

I am trying to replicate your issue, but I need to better understand the layout of your table. As I read it, your original table is 2 rows x 2 columns and in the second row the 2 columns are merged into one. When I create this and key Alt+Enter in the second row I am immediately taken out of the table into a normal paragraph without the need to key Alt+Enter again. Could you attach a screen capture of your table?

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 6 Daveo 2023-07-31 09:23:01 UTC
Your issue is not with the table, it is the use of bullets in the second row. It appears that the bulleted paragraph's use of the Alt+Enter keys is overriding the table's use of that key combination.
Comment 7 Davide 2023-07-31 09:26:37 UTC
Thank you. If this is the problem there's no way to solve it and in case of bulleted paragraph I know I have type the shortcut twice.
May I consider this solved?
Comment 8 Telesto 2023-07-31 09:34:46 UTC
(In reply to Davide from comment #7)
> Thank you. If this is the problem there's no way to solve it and in case of
> bulleted paragraph I know I have type the shortcut twice.
> May I consider this solved?

Pressing Arrow Right (twice) instead of alt+enter might do it
Comment 9 Daveo 2023-07-31 09:41:11 UTC
Another work-around would be to type the second line in the second row without bullets, key Alt+Enter to leave the table then click that line and select bullets.

In it's present form I think this report should be closed and a new enhancement request should be made for another key combination to be added, if possible, to serve the requirement you have identified.
Comment 10 Davide 2023-08-08 14:06:02 UTC
An enhancement request should be made for another key combination to be added (different than Alt+Enter), if possible, to serve the requirement identified (exit from table)
Comment 11 Stéphane Guillou (stragu) 2023-08-08 20:15:23 UTC
My guess is that a conflict in shortcuts is reason enough to look for a fix.
But it's true that opening a new ticket might be a good idea, with clear steps, a link to attachment 188669 [details], and a preferred solution.

Conflict already existed in OOo 3.3.
Comment 12 László Németh 2023-08-10 16:13:38 UTC
Unfortunately, it's hard to create a macro for this, because alt-Enter is not configurable, and there is no associated dispatcher call for it, yet.

Other workarounds:

– pressing double Enters before alt-Enter to leave the list (and after that, removing the unnecessary empty paragraph in the cell – maybe it's a little bit easier, than remove the empty bullet list item).

– pressing alt-Enter in the first cell of the next table or

– pressing Enter and after that, Ctrl-0 in the beginning of the next Heading to insert an empty Heading and change it to Text Body paragraph style.