From 96ddd81898c81bfc8258c14d6ac7dfffee10e7be Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Thu, 19 Jan 2017 10:55:30 +0900 Subject: [PATCH] Not handle events if keyboard is on The keyboard is using ecore_event_filter, so it is not possilbe to get events on activated application side. So this commit ignores events if keyboard is on. Change-Id: I1d493decb21b302f27b4500e7735025b35525c00 --- src/lib/elm_atspi_bridge.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/lib/elm_atspi_bridge.c b/src/lib/elm_atspi_bridge.c index fdea74d..5b3e226 100644 --- a/src/lib/elm_atspi_bridge.c +++ b/src/lib/elm_atspi_bridge.c @@ -4956,6 +4956,25 @@ _elm_atspi_bridge_key_filter(void *data, void *loop EINA_UNUSED, int type, void return EINA_TRUE; } + // TIZEN_ONLY(20170118): Not handle events if keyboard is on + if (pd->root) + { + Eina_List *children, *l; + Evas_Object *child; + eo_do(pd->root, children = elm_interface_atspi_accessible_children_get()); + + EINA_LIST_FOREACH(children, l, child) + { + if (elm_widget_focus_get(child)) break; + } + eina_list_free(children); + + Elm_Win_Keyboard_Mode mode; + mode = elm_win_keyboard_mode_get(child); + if (mode == ELM_WIN_KEYBOARD_ON) return EINA_TRUE; + } + // + ke = _key_event_info_new(type, key_event, bridge); if (!ke) return EINA_TRUE; -- 2.7.4