hopefully remove shitty hack

This commit is contained in:
Arisotura 2021-04-25 11:09:16 +02:00
parent 00e4df7421
commit 9d9865d256
1 changed files with 3 additions and 3 deletions

View File

@ -304,11 +304,11 @@ QString KeyMapButton::mappingText()
}
QKeySequence seq(key);
QString ret = seq.toString();
QString ret = seq.toString(QKeySequence::NativeText);
// weak attempt at detecting garbage key names
if (ret.length() == 2 && ret[0].unicode() > 0xFF)
return QString("[%1]").arg(key, 8, 16);
//if (ret.length() == 2 && ret[0].unicode() > 0xFF)
// return QString("[%1]").arg(key, 8, 16);
return ret.replace("&", "&&");
}