All pastes #958647 Raw Edit

Anonymous

public text v1 · immutable
#958647 ·published 2008-03-26 21:06 UTC
rendered paste body
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;
    }