Bug 476192 - Text Tool Cursor: Delete key removes two characters instead of one
Summary: Text Tool Cursor: Delete key removes two characters instead of one
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: git master (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-28 10:18 UTC by Simon Ra
Modified: 2023-10-30 12:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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