mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-17 13:02:49 -05:00
Fix compile issue on OSX El Capitan
This commit is contained in:
parent
99d97acb1d
commit
a94efddfe6
@ -419,16 +419,16 @@ CGEventFlags AutoTypePlatformMac::qtToNativeModifiers(Qt::KeyboardModifiers modi
|
|||||||
|
|
||||||
|
|
||||||
if (modifiers & Qt::ShiftModifier) {
|
if (modifiers & Qt::ShiftModifier) {
|
||||||
nativeModifiers |= shiftMod;
|
nativeModifiers = CGEventFlags(nativeModifiers | shiftMod);
|
||||||
}
|
}
|
||||||
if (modifiers & Qt::ControlModifier) {
|
if (modifiers & Qt::ControlModifier) {
|
||||||
nativeModifiers |= cmdMod;
|
nativeModifiers = CGEventFlags(nativeModifiers | cmdMod);
|
||||||
}
|
}
|
||||||
if (modifiers & Qt::AltModifier) {
|
if (modifiers & Qt::AltModifier) {
|
||||||
nativeModifiers |= optionMod;
|
nativeModifiers = CGEventFlags(nativeModifiers | optionMod);
|
||||||
}
|
}
|
||||||
if (modifiers & Qt::MetaModifier) {
|
if (modifiers & Qt::MetaModifier) {
|
||||||
nativeModifiers |= controlMod;
|
nativeModifiers = CGEventFlags(nativeModifiers | controlMod);
|
||||||
}
|
}
|
||||||
|
|
||||||
return nativeModifiers;
|
return nativeModifiers;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user