In some profiles such as TV, the libscl-ui processes
key events in order to handle remote controller's
Arrows/Select keys. But since the remote controller's
Select key has the same key value with the Enter key,
the Enter key event that was generated by our IME,
could be interpreted as remote controller's Select key.
So, for preventing this case, we are not going to
let libscl-ui to process key events if the key event
was generated by ime itself.
Change-Id: Ia2719f552adebf1e40a42f19dec924c2f9bb3daf
{
ret = 0;
if (g_ui) {
- ret = (sclu32)g_ui->process_key_event(key.get_key_string().c_str());
+ /* Process this key event if it was not generated by ime */
+ if (key.dev_name.compare("ime") != 0) {
+ ret = (sclu32)g_ui->process_key_event(key.get_key_string().c_str());
+ }
}
}