Clean text rendering in editor.
This commit is contained in:
parent
290b64e230
commit
f16dd7c0d9
45 changed files with 59 additions and 60 deletions
|
@ -57,7 +57,15 @@ bool TextBox::onMyKeyboardEvent(const KeyboardEvent* event)
|
|||
else
|
||||
{
|
||||
const auto keyString = event->getKeyString();
|
||||
appendContent(keyString);
|
||||
if (keyString.length() < 2)
|
||||
{
|
||||
appendContent(keyString);
|
||||
}
|
||||
else
|
||||
{
|
||||
appendContent("?");
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue