This is a patch trying to fix the regression caused by an old patch.
Backspace key behavior in all applications acts by removing the diacritics one by one and then
remove the base character.
For Indic locales this doesn't work, and the whole character should be removed.
This causes a problem in Arabic where we just want to remove the diacritic and
not the whole composed character.
This patch adds a configuration option that is disabled by default. It's purpose
is to switch between the two modes.
Enabling it will use the Indic mode, because the default all software uses is the
For the delete key, the correct way for Arabic is to remove the diacritics as
well, so there is no if statement for it.