bool MythUITextEdit::keyPressEvent(QKeyEvent *e) { QStringList actions; bool handled = false; const QChar *character = e->text().unicode(); if (character->isLetterOrNumber() || character->isPunct() || character->isSpace() || character->isSymbol()) { InsertCharacter(e->text()); handled = true; }