Linux: swap \n with \r for CEF. Otherwise return will not work.

Nicky 2016-02-21 22:33:12 +01:00
parent 79494e474e
commit 6c9f85bb27
1 changed files with 3 additions and 0 deletions

View File

@ -872,6 +872,9 @@ void MediaPluginCEF::deserializeKeyboardData(LLSD native_key_data, uint32_t& nat
native_scan_code = (uint32_t)(native_key_data["sdl_sym"].asInteger());
native_virtual_key = (uint32_t)(native_key_data["virtual_key"].asInteger());
native_modifiers = (uint32_t)(native_key_data["cef_modifiers"].asInteger());
if( native_scan_code == '\n' )
native_scan_code = '\r';
#endif
};
};