Office 365 have the issue:
A sentence typed has "space", text will be disappear after change line.
It's because Office 365 website need handle "space" key to sync online;
while the "space" key been filtered by IME, IME commit it as " " text,
and the keycode of the " " is 229.
It cause Office 365 website can not distinguish the "space" key.
Current the keycode of "space" is 32, it is consistent with "space" key,
so convert " " to "space" key to fix the issue.
Change-Id: Ifa528e0792e69ffd0714ae40c2bd0b362e08b599
Signed-off-by: chenshurong <shurong.chen@samsung.com>
void IMContextEfl::SendFakeCompositionKeyEvent(const std::u16string& buf) {
std::string str = base::UTF16ToUTF8(buf);
+#if BUILDFLAG(IS_TIZEN_TV)
+ // We should process both " " and "space" which IME sends.
+ // Otherwise " " would be received by engine and cause unnecessary page
+ // scroll.
+ if (str == " ")
+ str = "space";
+#endif
+
Evas_Event_Key_Down downEvent;
memset(&downEvent, 0, sizeof(Evas_Event_Key_Down));
downEvent.key = str.c_str();