diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2019-03-07 15:27:31 +0200 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2019-03-07 15:27:31 +0200 |
commit | 42ec90a877647ef05d83518bb036d6963c398294 (patch) | |
tree | b69f1c5265de520cd32fe54821be1633a78e0cbd /indra/media_plugins | |
parent | fdbcb3fa760a81652ce29354ebb4d9362036b267 (diff) |
SL-9846 FIXED [MAC] Empty space is inserted into the text field while switching fields by pressing 'Tab' in Viewer browser
Diffstat (limited to 'indra/media_plugins')
-rw-r--r-- | indra/media_plugins/cef/media_plugin_cef.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/media_plugins/cef/media_plugin_cef.cpp b/indra/media_plugins/cef/media_plugin_cef.cpp index 381c61c53d..802aa97086 100644 --- a/indra/media_plugins/cef/media_plugin_cef.cpp +++ b/indra/media_plugins/cef/media_plugin_cef.cpp @@ -821,7 +821,8 @@ void MediaPluginCEF::keyEvent(dullahan::EKeyEvent key_event, LLSD native_key_dat // adding new code below in unicodeInput means we don't send ascii chars // here too or we get double key presses on a mac. bool esc_key = (event_umodchars == 27); - if (esc_key || ((unsigned char)event_chars < 0x10 || (unsigned char)event_chars >= 0x7f )) + bool tab_key_up = (event_umodchars == 9) && (key_event == dullahan::EKeyEvent::KE_KEY_UP); + if ((esc_key || ((unsigned char)event_chars < 0x10 || (unsigned char)event_chars >= 0x7f )) && !tab_key_up) { mCEFLib->nativeKeyboardEventOSX(key_event, event_modifiers, event_keycode, event_chars, |