Lines 934-942
Link Here
|
934 |
{ |
934 |
{ |
935 |
bool handled = false; |
935 |
bool handled = false; |
936 |
QStringList actions; |
936 |
QStringList actions; |
|
|
937 |
keyPressActions.clear(); |
938 |
|
937 |
if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e, |
939 |
if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e, |
938 |
actions)) |
940 |
actions)) |
939 |
{ |
941 |
{ |
|
|
942 |
keyPressActions = actions; |
943 |
|
940 |
for (unsigned int i = 0; i < actions.size() && !handled; i++) |
944 |
for (unsigned int i = 0; i < actions.size() && !handled; i++) |
941 |
{ |
945 |
{ |
942 |
QString action = actions[i]; |
946 |
QString action = actions[i]; |
Lines 970-979
Link Here
|
970 |
void MythPushButton::keyReleaseEvent(QKeyEvent *e) |
974 |
void MythPushButton::keyReleaseEvent(QKeyEvent *e) |
971 |
{ |
975 |
{ |
972 |
bool handled = false; |
976 |
bool handled = false; |
973 |
QStringList actions; |
977 |
QStringList actions = keyPressActions; |
974 |
if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e, |
|
|
975 |
actions)) |
976 |
{ |
977 |
for (unsigned int i = 0; i < actions.size() && !handled; i++) |
978 |
for (unsigned int i = 0; i < actions.size() && !handled; i++) |
978 |
{ |
979 |
{ |
979 |
QString action = actions[i]; |
980 |
QString action = actions[i]; |
Lines 984-990
Link Here
|
984 |
handled = true; |
985 |
handled = true; |
985 |
} |
986 |
} |
986 |
} |
987 |
} |
987 |
} |
|
|
988 |
|
988 |
|
989 |
if (!handled) |
989 |
if (!handled) |
990 |
QPushButton::keyReleaseEvent(e); |
990 |
QPushButton::keyReleaseEvent(e); |