Merge pull request #7089 from symless/SYNERGY-1099-Modifier-keys-don't-work-in-Microsoft-Remote-Desktop

SYNERGY-1099 Modifier keys don't work on Microsoft Remote Desktop
This commit is contained in:
Andrey Batyiev 2021-09-16 18:06:51 +03:00 committed by GitHub
commit 9527f95faa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -7,6 +7,7 @@ Bug fixes:
- #7080 Add trace if the system can't open file with trusted fingerprints
- #7081 Fix autoconfig after SYNERGY-1161
- #7082 Windows client doesn't resume connection after sleep
- #7089 Modifier keys don't work on Microsoft Remote Desktop
Enhancements:
- #7068 Add Synergy restart when settings changed

View file

@ -483,19 +483,19 @@ OSXKeyState::getKeyboardEventFlags()
CGEventFlags modifiers = 0;
if (m_shiftPressed) {
modifiers |= kCGEventFlagMaskShift;
modifiers |= kCGEventFlagMaskShift | NX_DEVICELSHIFTKEYMASK;
}
if (m_controlPressed) {
modifiers |= kCGEventFlagMaskControl;
modifiers |= kCGEventFlagMaskControl | NX_DEVICELCTLKEYMASK;
}
if (m_altPressed) {
modifiers |= kCGEventFlagMaskAlternate;
modifiers |= kCGEventFlagMaskAlternate | NX_DEVICELALTKEYMASK;
}
if (m_superPressed) {
modifiers |= kCGEventFlagMaskCommand;
modifiers |= kCGEventFlagMaskCommand | NX_DEVICELCMDKEYMASK;
}
if (m_capsPressed) {