From e76b4a774747bd16886ca62f2e8bab866722bb43 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Fri, 16 Sep 2016 17:11:22 +0100 Subject: [PATCH] #3305 Send macOS media key events to clients --- src/lib/platform/OSXScreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/platform/OSXScreen.cpp b/src/lib/platform/OSXScreen.cpp index da18190e..e4b80e37 100644 --- a/src/lib/platform/OSXScreen.cpp +++ b/src/lib/platform/OSXScreen.cpp @@ -1349,6 +1349,10 @@ OSXScreen::onMediaKey(CGEventRef event) LOG ((CLOG_DEBUG2 "Media key event: keyID=0x%02x, %s, repeat=%s", keyID, (down ? "down": "up"), (isRepeat ? "yes" : "no"))); + + KeyButton button = 0; + KeyModifierMask mask = m_keyState->getActiveModifiers(); + m_keyState->sendKeyEvent(getEventTarget(), down, isRepeat, keyID, mask, 1, button); } bool