Issue 746: escape the comma in KeySequence
This commit is contained in:
parent
515805fc1a
commit
d0d01f2671
|
@ -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)
|
// treat key pad like normal keys (FIXME: we should have another lookup table for keypad keys instead)
|
||||||
key &= ~Qt::KeypadModifier;
|
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?
|
// a printable 7 bit character?
|
||||||
if (key < 0x80 && key != Qt::Key_Space)
|
if (key < 0x80 && key != Qt::Key_Space)
|
||||||
return QChar(key & 0x7f).toLower();
|
return QChar(key & 0x7f).toLower();
|
||||||
|
|
Loading…
Reference in New Issue