diff --git a/src/KeyboardTranslator.cpp b/src/KeyboardTranslator.cpp index b3a68e7f..6f350391 100644 --- a/src/KeyboardTranslator.cpp +++ b/src/KeyboardTranslator.cpp @@ -391,7 +391,7 @@ QList KeyboardTranslatorReader::tokenize(const QRegularExpression::OptimizeOnFirstUsageOption); // key line: key KeySequence : "output" // key line: key KeySequence : command - static const QRegularExpression key(QStringLiteral("key\\s+([\\w\\+\\s\\-\\*\\.]+)\\s*:\\s*(\"(.*)\"|\\w+)"), + static const QRegularExpression key(QStringLiteral("key\\s+(.+?)\\s*:\\s*(\"(.*)\"|\\w+)"), QRegularExpression::OptimizeOnFirstUsageOption); QList list;