<table><tr><td style="">safaalfulaij created this revision.<br />Restricted Application added subscribers: Frameworks, kwrite-devel.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7660" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a patch trying to fix the regression caused by an <a href="https://git.reviewboard.kde.org/r/127843/" class="remarkup-link" target="_blank" rel="noreferrer">old patch</a>.<br />
Backspace key behavior in all applications acts by removing the <a href="https://en.wikipedia.org/wiki/Diacritic" class="remarkup-link" target="_blank" rel="noreferrer">diacritics</a> one by one and then <br />
remove the base character.<br />
For Indic locales this doesn't work, and the whole character should be removed. <br />
This causes a problem in Arabic where we just want to remove the diacritic and <br />
not the whole composed character.</p>

<p>This patch adds a configuration option that is disabled by default. It's purpose <br />
is to switch between the two modes.<br />
Enabling it will use the Indic mode, because the default all software uses is the <br />
normal mode.<br />
For the delete key, the correct way for Arabic is to remove the diacritics as <br />
well, so there is no if statement for it.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>KTextEditor compiled normally. Both modes works as expected. No problems reported <br />
about the test while compiling, not sure if it's working right or not.<br />
(I copied my changes from an older version source code (matching my current <br />
configiration). There might be things I missed when doing that.)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7660" rel="noreferrer">https://phabricator.kde.org/D7660</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/src/katedocument_test.cpp<br />
src/dialogs/katedialogs.cpp<br />
src/dialogs/navigationconfigwidget.ui<br />
src/document/katedocument.cpp<br />
src/utils/kateconfig.cpp<br />
src/utils/kateconfig.h</div></div></div><br /><div><strong>To: </strong>safaalfulaij<br /><strong>Cc: </strong>kwrite-devel, Frameworks<br /></div>