VirtualBox

Ignore:
Timestamp:
Feb 2, 2017 4:04:09 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: UIHostComboEditor: Translate the Left/Right modifier variants together with the actual key names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp

    r63322 r65592  
    147147        case controlKey:
    148148        case cmdKey:
    149             strKeyName = UIHostComboEditor::tr("Left ");
     149            strKeyName = UIHostComboEditor::tr("Left %1");
    150150            break;
    151151        case rightShiftKey:
     
    153153        case rightControlKey:
    154154        case kEventKeyModifierRightCmdKeyMask:
    155             strKeyName = UIHostComboEditor::tr("Right ");
     155            strKeyName = UIHostComboEditor::tr("Right %1");
    156156            break;
    157157        default:
     
    162162        case shiftKey:
    163163        case rightShiftKey:
    164             strKeyName += QChar(kShiftUnicode);
     164            strKeyName = strKeyName.arg(QChar(kShiftUnicode));
    165165            break;
    166166        case optionKey:
    167167        case rightOptionKey:
    168             strKeyName += QChar(kOptionUnicode);
     168            strKeyName = strKeyName.arg(QChar(kOptionUnicode));
    169169            break;
    170170        case controlKey:
    171171        case rightControlKey:
    172             strKeyName += QChar(kControlUnicode);
     172            strKeyName = strKeyName.arg(QChar(kControlUnicode));
    173173            break;
    174174        case cmdKey:
    175175        case kEventKeyModifierRightCmdKeyMask:
    176             strKeyName += QChar(kCommandUnicode);
     176            strKeyName = strKeyName.arg(QChar(kCommandUnicode));
    177177            break;
    178178    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette