add more Mac crap. hoping the weird characters made it through.

This commit is contained in:
Arisotura 2021-04-25 11:53:29 +02:00
parent 185c97f4ef
commit 18497d396d
1 changed files with 10 additions and 0 deletions

View File

@ -294,6 +294,7 @@ QString KeyMapButton::mappingText()
QString isright = (key & (1<<31)) ? "Right " : "Left ";
key &= ~(1<<31);
#ifndef __APPLE__
switch (key)
{
case Qt::Key_Control: return isright + "Ctrl";
@ -302,6 +303,15 @@ QString KeyMapButton::mappingText()
case Qt::Key_Shift: return isright + "Shift";
case Qt::Key_Meta: return "Meta";
}
#else
switch (key)
{
case Qt::Key_Control: return isright + "";
case Qt::Key_Alt: return isright + "";
case Qt::Key_Shift: return isright + "";
case Qt::Key_Meta: return isright + "";
}
#endif
QKeySequence seq(key);
QString ret = seq.toString(QKeySequence::NativeText);