Commit 297feb54 authored by Martin Koller's avatar Martin Koller
Browse files

Only disallow control characters for text input

This now allows to insert e.g. zero-width joiner and zero-width
non-joiner characters, which are needed for arabic/persian input

BUG: 456498
parent c1dc527f
Pipeline #202274 canceled with stage
in 3 minutes and 5 seconds
......@@ -175,9 +175,8 @@ void kpToolText::handleTextTyped (QKeyEvent *e,
QString usableText;
for (int i = 0; i < e->text ().length (); i++)
{
if (e->text ().at (i).isPrint ()) {
usableText += e->text ().at (i);
}
if ( e->text().at(i).category() != QChar::Other_Control )
usableText += e->text().at(i);
}
#if DEBUG_KP_TOOL_TEXT
qCDebug(kpLogTools) << "\tusableText=" << usableText;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment