Ticket #3636: translate-keypresses-debug.diff

File translate-keypresses-debug.diff, 1.9 KB (added by Roo, 13 years ago)

Debug statements patch

  • mythtv/libs/libmythtv/tv_play.cpp

     
    21832183    bool redisplayBrowseInfo = false;
    21842184    QStringList actions;
    21852185
     2186    VERBOSE(VB_IMPORTANT, LOC + "ProcessKeypress() ignoreKeys: "<<ignoreKeys);
     2187   
    21862188    if (ignoreKeys)
    21872189    {
    21882190        if (!gContext->GetMainWindow()->TranslateKeyPress(
  • mythtv/libs/libmythui/mythmainwindow.cpp

     
    729729        d->exitingtomain = true;
    730730        d->exitmenucallback = d->jumpMap[keynum]->callback;
    731731        QApplication::postEvent(this, new ExitToMainMenuEvent());
     732        VERBOSE(VB_IMPORTANT, QString("Translated keypress (JumpPoint)\n\tcontext: %1\n\tkeynum: %2\n\tactions: '%3'\n\tallowJumps: %4").arg(context).arg(keynum).arg(actions.join("' '")).arg(allowJumps));
    732733        return false;
    733734    }
    734735
     
    737738    if (d->keyContexts[context])
    738739    {
    739740        if (d->keyContexts[context]->GetMapping(keynum, actions))
     741        {
     742                VERBOSE(VB_IMPORTANT, QString("Translated keypress (context)\n\tcontext: %1\n\tkeynum: %2\n\tactions: '%3'\n\tallowJumps: %4").arg(context).arg(keynum).arg(actions.join("' '")).arg(allowJumps));
    740743            retval = true;
     744        }
    741745    }
    742746
    743747    if (context != "Global" &&
    744748        d->keyContexts["Global"]->GetMapping(keynum, actions))
    745749    {
     750        VERBOSE(VB_IMPORTANT, QString("Translated keypress (!context)\n\tcontext: %1\n\tkeynum: %2\n\tactions: '%3'\n\tallowJumps: %4").arg(context).arg(keynum).arg(actions.join("' '")).arg(allowJumps));
    746751        retval = true;
    747752    }
    748 
     753   
    749754    return retval;
    750755}
    751756