Fix compile issue on OSX El Capitan

This commit is contained in:
Weslly 2017-04-28 11:03:15 -03:00
parent 99d97acb1d
commit a94efddfe6

View File

@ -419,16 +419,16 @@ CGEventFlags AutoTypePlatformMac::qtToNativeModifiers(Qt::KeyboardModifiers modi
if (modifiers & Qt::ShiftModifier) {
nativeModifiers |= shiftMod;
nativeModifiers = CGEventFlags(nativeModifiers | shiftMod);
}
if (modifiers & Qt::ControlModifier) {
nativeModifiers |= cmdMod;
nativeModifiers = CGEventFlags(nativeModifiers | cmdMod);
}
if (modifiers & Qt::AltModifier) {
nativeModifiers |= optionMod;
nativeModifiers = CGEventFlags(nativeModifiers | optionMod);
}
if (modifiers & Qt::MetaModifier) {
nativeModifiers |= controlMod;
nativeModifiers = CGEventFlags(nativeModifiers | controlMod);
}
return nativeModifiers;