| 485 | } |
| 486 | |
| 487 | void QMappingSequenceEdit::keyPressEvent(QKeyEvent *event) |
| 488 | { |
| 489 | #ifdef DEBUG_LOGOUT_ON |
| 490 | qDebug() << "[QMappingSequenceEdit::keyPressEvent]" << "Key:" << (Qt::Key)event->key() << ", Modifiers:" << event->modifiers(); |
| 491 | #endif |
| 492 | |
| 493 | switch (event->key()) { |
| 494 | case Qt::Key_Backspace: |
| 495 | case Qt::Key_Space: |
| 496 | if (event->modifiers() == Qt::NoModifier) { |
| 497 | clearHighlightSelection(); |
| 498 | return; |
| 499 | } |
| 500 | break; |
| 501 | default: |
| 502 | break; |
| 503 | } |
| 504 | |
| 505 | QDialog::keyPressEvent(event); |
| 506 | } |
| 507 | |
| 508 | |
| 509 | void QMappingSequenceEdit::MapkeyComboBox_currentTextChangedSlot(const QString &text) |
nothing calls this directly
no test coverage detected