MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / keyPressEvent

Method keyPressEvent

QKeyMapper/qmappingsequenceedit.cpp:487–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487void 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
509void QMappingSequenceEdit::MapkeyComboBox_currentTextChangedSlot(const QString &text)

Callers

nothing calls this directly

Calls 15

modifiersMethod · 0.80
undoMethod · 0.80
redoMethod · 0.80
isEmptyMethod · 0.80

Tested by

no test coverage detected