#3305 Send macOS media key events to clients

This commit is contained in:
Andrew Nelless 2016-09-16 17:11:22 +01:00
parent 1b0d4308e2
commit e76b4a7747
1 changed files with 4 additions and 0 deletions

View File

@ -1349,6 +1349,10 @@ OSXScreen::onMediaKey(CGEventRef event)
LOG ((CLOG_DEBUG2 "Media key event: keyID=0x%02x, %s, repeat=%s", LOG ((CLOG_DEBUG2 "Media key event: keyID=0x%02x, %s, repeat=%s",
keyID, (down ? "down": "up"), keyID, (down ? "down": "up"),
(isRepeat ? "yes" : "no"))); (isRepeat ? "yes" : "no")));
KeyButton button = 0;
KeyModifierMask mask = m_keyState->getActiveModifiers();
m_keyState->sendKeyEvent(getEventTarget(), down, isRepeat, keyID, mask, 1, button);
} }
bool bool