mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-27 00:35:27 -04:00
Merge pull request #517 from weslly/fix-compile
Fix OSX El Capitan compilation issue
This commit is contained in:
commit
ab3e009d76
1 changed files with 5 additions and 5 deletions
|
@ -403,12 +403,12 @@ uint16 AutoTypePlatformMac::qtToNativeKeyCode(Qt::Key key)
|
||||||
//
|
//
|
||||||
CGEventFlags AutoTypePlatformMac::qtToNativeModifiers(Qt::KeyboardModifiers modifiers, bool native)
|
CGEventFlags AutoTypePlatformMac::qtToNativeModifiers(Qt::KeyboardModifiers modifiers, bool native)
|
||||||
{
|
{
|
||||||
CGEventFlags nativeModifiers = 0;
|
CGEventFlags nativeModifiers = CGEventFlags(0);
|
||||||
|
|
||||||
CGEventFlags shiftMod = shiftKey;
|
CGEventFlags shiftMod = CGEventFlags(shiftKey);
|
||||||
CGEventFlags cmdMod = cmdKey;
|
CGEventFlags cmdMod = CGEventFlags(cmdKey);
|
||||||
CGEventFlags optionMod = optionKey;
|
CGEventFlags optionMod = CGEventFlags(optionKey);
|
||||||
CGEventFlags controlMod = controlKey;
|
CGEventFlags controlMod = CGEventFlags(controlKey);
|
||||||
|
|
||||||
if (native) {
|
if (native) {
|
||||||
shiftMod = kCGEventFlagMaskShift;
|
shiftMod = kCGEventFlagMaskShift;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue