Deliver key in FOCUS DIRECT Mode if Key is not registered with any surface, surface_f... 26/90626/1
authorPreshit Agarwal <preshit.p@samsung.com>
Mon, 3 Oct 2016 08:52:47 +0000 (14:22 +0530)
committerPreshit Agarwal <preshit.p@samsung.com>
Mon, 3 Oct 2016 08:52:47 +0000 (14:22 +0530)
Change-Id: I914e593f4ab77c770496a413dca9c347e69e0b66
Signed-off-by: Preshit Agarwal <preshit.p@samsung.com>
src/e_mod_keyrouter_events.c

index 1f8249f..3447968 100644 (file)
@@ -346,7 +346,8 @@ _e_keyrouter_send_key_events_focus(int type, struct wl_resource *surface_focus,
    ec_top = e_client_top_get();
    ec_focus = e_client_focused_get();
 
-   if (!krt->HardKeys[ev->keycode].registered_ptr && !krt->invisible_set_window_list)
+   if (!krt->HardKeys[ev->keycode].registered_ptr && !e_keyrouter_is_registered_window(surface_focus) &&
+         !IsNoneKeyRegisterWindow(surface_focus) && !krt->invisible_set_window_list)
      {
         pid = e_keyrouter_util_get_pid(NULL, surface_focus);
         pname = e_keyrouter_util_process_name_get_from_cmd(e_keyrouter_util_cmd_get_from_pid(pid));