From d0d01f26712f07e9798954e6be01871924d73f4e Mon Sep 17 00:00:00 2001 From: VE3NEA Date: Thu, 11 Jun 2020 13:09:00 -0400 Subject: [PATCH] Issue 746: escape the comma in KeySequence --- src/gui/src/KeySequence.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/src/KeySequence.cpp b/src/gui/src/KeySequence.cpp index cc74cb2b..aea464aa 100644 --- a/src/gui/src/KeySequence.cpp +++ b/src/gui/src/KeySequence.cpp @@ -211,6 +211,10 @@ QString KeySequence::keyToString(int key) // treat key pad like normal keys (FIXME: we should have another lookup table for keypad keys instead) key &= ~Qt::KeypadModifier; + //escape comma + if (key == ',') + return QString("\\u%1").arg(QChar(key).toLower().unicode(), 4, 16, QChar('0')); + // a printable 7 bit character? if (key < 0x80 && key != Qt::Key_Space) return QChar(key & 0x7f).toLower();