Bug 476192

Summary: Text Tool Cursor: Delete key removes two characters instead of one
Product: [Applications] krita Reporter: Simon Ra <wildcardc>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Simon Ra 2023-10-28 10:18:35 UTC
SUMMARY
The delete key will delete two characters at a time when used at the beginning of the text section. If there is only one character, it will do nothing.

STEPS TO REPRODUCE
1. Use the text tool to get "Placeholder Text" with the cursor at the beginning
2. Hit the delete key

OBSERVED RESULT
"aceholder Text"

EXPECTED RESULT
"laceholder Text"

SOFTWARE/OS VERSIONS
Windows: 10
Commit hash: 38d6e48c68e7eb85925f45ac263614f55465c8b5
Comment 1 wolthera 2023-10-30 12:11:40 UTC
Git commit 2ff67a14e5758ce47d321d8c38dd425314519e22 by Wolthera van Hövell tot Westerflier.
Committed on 30/10/2023 at 12:55.
Pushed by woltherav into branch 'master'.

Text: fix next/previous cluster.

This changes the nature of the functions a little, but does fix
partial deletion on ligatures as well.

M  +11   -7    libs/flake/text/KoSvgTextShape.cpp
M  +7    -4    libs/flake/text/KoSvgTextShape.h

https://invent.kde.org/graphics/krita/-/commit/2ff67a14e5758ce47d321d8c38dd425314519e22