mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Merge pull request #536 from weslly/hotfix/elcapitan
Fix compile issue on OSX El Capitan
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user