--- libs/libmyth/mythwidgets.cpp 2005/04/10 05:15:53 1.92 +++ libs/libmyth/mythwidgets.cpp 2005/05/23 22:36:59 1.92.2.1 @@ -934,9 +934,13 @@ { bool handled = false; QStringList actions; + keyPressActions.clear(); + if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e, actions)) { + keyPressActions = actions; + for (unsigned int i = 0; i < actions.size() && !handled; i++) { QString action = actions[i]; @@ -970,10 +974,7 @@ void MythPushButton::keyReleaseEvent(QKeyEvent *e) { bool handled = false; - QStringList actions; - if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e, - actions)) - { + QStringList actions = keyPressActions; for (unsigned int i = 0; i < actions.size() && !handled; i++) { QString action = actions[i]; @@ -984,7 +985,6 @@ handled = true; } } - } if (!handled) QPushButton::keyReleaseEvent(e); --- libs/libmyth/mythwidgets.h 2005/04/10 05:15:53 1.57 +++ libs/libmyth/mythwidgets.h 2005/05/23 22:36:59 1.57.2.1 @@ -260,6 +260,8 @@ QColor origcolor; QString helptext; bool arrowAccel; + + QStringList keyPressActions; }; class MythCheckBox: public QCheckBox