diff --git a/debug_console.cpp b/debug_console.cpp index f44a230fcd..c0f012ff33 100644 --- a/debug_console.cpp +++ b/debug_console.cpp @@ -289,7 +289,12 @@ void DebugConsoleFilter::keyEvent(KeyEvent *event) }; text.append(timestampRow(event->timestamp())); text.append(tableRow(i18nc("Whether the event is an automatic key repeat", "Repeat"), event->isAutoRepeat())); + + const auto keyMetaObject = Qt::qt_getEnumMetaObject(Qt::Key()); + const auto enumerator = keyMetaObject->enumerator(keyMetaObject->indexOfEnumerator("Key")); text.append(tableRow(i18nc("The code as read from the input device", "Scan code"), event->nativeScanCode())); + text.append(tableRow(i18nc("Key according to Qt", "Qt::Key code"), + enumerator.valueToKey(event->key()))); text.append(tableRow(i18nc("The translated code to an Xkb symbol", "Xkb symbol"), event->nativeVirtualKey())); text.append(tableRow(i18nc("The translated code interpreted as text", "Utf8"), event->text())); text.append(tableRow(i18nc("The currently active modifiers", "Modifiers"), modifiersToString()));