Bug 472743

Summary: Splitting lines by Shift+Enter: works in the edit window, but not on the canvas
Product: [Applications] krita Reporter: Alexey <o-din13>
Component: Tool/TextAssignee: Alvin Wong <alvin>
Status: RESOLVED FIXED    
Severity: normal CC: alvin
Priority: NOR    
Version: 5.1.5   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: enter
shift+enter

Description Alexey 2023-07-28 12:37:38 UTC
Created attachment 160584 [details]
enter

The lines can be separated by pressing Enter. The expected behavior occurs.
But when you press Shift+Enter, the lines are separated in the editor window, but not on the canvas, which is not the expected behavior.
This is misleading, as if the function does not work.


STEPS TO REPRODUCE
1. add some words
2. move the text to another line by pressing Shift+Enter
3. apply text changes

OBSERVED RESULT
the text shows an undivided string

EXPECTED RESULT
the text shows a line break


SOFTWARE/OS VERSIONS
all os
Comment 1 Alexey 2023-07-28 12:38:10 UTC
Created attachment 160585 [details]
shift+enter
Comment 2 Alvin Wong 2023-07-28 14:03:17 UTC
Soft line breaks with Shift + Enter are not supported. I will disable this behaviour in 5.2.
Comment 3 Alvin Wong 2023-07-28 14:28:21 UTC
Git commit 5c98737f4fe9c73ec3031b1584c4fa05c4577e3e by Alvin Wong.
Committed on 28/07/2023 at 16:28.
Pushed by alvinwong into branch 'master'.

svgtexttool: Disable Shift+Enter soft line breaks

M  +17   -0    plugins/tools/svgtexttool/SvgTextEditor.cpp
M  +1    -0    plugins/tools/svgtexttool/SvgTextEditor.h

https://invent.kde.org/graphics/krita/-/commit/5c98737f4fe9c73ec3031b1584c4fa05c4577e3e
Comment 4 Alvin Wong 2023-07-28 14:28:44 UTC
Git commit 54e03e61e29655939bdf70c0f34d86e38476d6d5 by Alvin Wong.
Committed on 28/07/2023 at 16:28.
Pushed by alvinwong into branch 'krita/5.2'.

svgtexttool: Disable Shift+Enter soft line breaks
(cherry picked from commit 5c98737f4fe9c73ec3031b1584c4fa05c4577e3e)

M  +17   -0    plugins/tools/svgtexttool/SvgTextEditor.cpp
M  +1    -0    plugins/tools/svgtexttool/SvgTextEditor.h

https://invent.kde.org/graphics/krita/-/commit/54e03e61e29655939bdf70c0f34d86e38476d6d5