diff --git a/src/KeyboardTranslator.cpp b/src/KeyboardTranslator.cpp --- a/src/KeyboardTranslator.cpp +++ b/src/KeyboardTranslator.cpp @@ -391,7 +391,7 @@ 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;