diff options
| -rw-r--r-- | indra/media_plugins/cef/media_plugin_cef.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/media_plugins/cef/media_plugin_cef.cpp b/indra/media_plugins/cef/media_plugin_cef.cpp index 9e7c390eb2..be69858d47 100644 --- a/indra/media_plugins/cef/media_plugin_cef.cpp +++ b/indra/media_plugins/cef/media_plugin_cef.cpp @@ -727,6 +727,12 @@ void MediaPluginCEF::keyEvent(LLCEFLib::EKeyEvent key_event, int key, LLCEFLib::  {  #if LL_DARWIN +    if (!native_key_data.has("event_type") || +            !native_key_data.has("event_modifiers") || +            !native_key_data.has("event_keycode") || +            !native_key_data.has("event_isrepeat")) +        return; +          uint32_t eventType = native_key_data["event_type"].asInteger();      uint32_t eventModifiers = native_key_data["event_modifiers"].asInteger();      uint32_t eventKeycode = native_key_data["event_keycode"].asInteger();  | 
