#3305 Send macOS media key events to clients
This commit is contained in:
parent
1b0d4308e2
commit
e76b4a7747
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue