Ticket #8016: 22-focus.patch
| File 22-focus.patch, 546 bytes (added by , 16 years ago) |
|---|
| Line | |
|---|---|
| 1 | Index: libs/libmythui/mythmainwindow.cpp |
| 2 | =================================================================== |
| 3 | --- libs/libmythui/mythmainwindow.cpp (revision 23444) |
| 4 | +++ libs/libmythui/mythmainwindow.cpp (working copy) |
| 5 | @@ -1092,6 +1092,10 @@ |
| 6 | QKeyEvent *e, QStringList |
| 7 | &actions, |
| 8 | bool allowJumps) |
| 9 | { |
| 10 | + QWidget *active = QApplication::activeWindow(); |
| 11 | + if (!active) |
| 12 | + return true; |
| 13 | + |
| 14 | actions.clear(); |
| 15 | int keynum = d->TranslateKeyNum(e); |
| 16 | |
| 17 |
