if (inputShouldBeHidden)
{
if (text != "|")
{
if (!string.IsNullOrEmpty(text))
{
Insert(text.Substring(1));
}
else if (!mKeyboard.done && mKeyboard.active)
{
DoBackspace();
}
mKeyboard.text = "|"; // <-- Move this outside the "if" statement above
}
}