| 40 | } |
| 41 | |
| 42 | void KeyPressedDialog::keyPressEvent(QKeyEvent * e) |
| 43 | { |
| 44 | int modifiers = 0; |
| 45 | if (withModifiers) { |
| 46 | |
| 47 | /* We ignore a key press on a modifier key if we accept a mapping that |
| 48 | * includes modifier keys */ |
| 49 | if (context->config.km->is_modifier(e->nativeVirtualKey())) { |
| 50 | return QDialog::keyPressEvent(e); |
| 51 | } |
| 52 | |
| 53 | /* Build modifiers */ |
| 54 | modifiers = convertQtModifiers(e->modifiers()); |
| 55 | } |
| 56 | |
| 57 | done(modifiers | context->config.km->nativeToKeysym(e->nativeVirtualKey())); |
| 58 | } |
nothing calls this directly
no test coverage detected