e_keyrouter: send keys to focus if a key is not grabbed 12/176712/2 accepted/tizen/unified/20180423.062841 submit/tizen/20180423.034322
authorJengHyun Kang <jhyuni.kang@samsung.com>
Mon, 23 Apr 2018 03:28:13 +0000 (12:28 +0900)
committerJengHyun Kang <jhyuni.kang@samsung.com>
Mon, 23 Apr 2018 03:31:16 +0000 (12:31 +0900)
Change-Id: Ib9cc37ea8e5233916411b33e5c170486ee00ad2a

src/bin/e_keyrouter_events.c

index dc4114f99caa958140d2afc17c87f32ba37309ef..f9939e358e7d33dab63753ed96831bec8e1000ef 100644 (file)
@@ -93,12 +93,6 @@ e_keyrouter_event_process(void *event, int type)
         goto finish;
      }
 
-   if ((ECORE_EVENT_KEY_UP == type) && (!krt->HardKeys[ev->keycode].press_ptr))
-     {
-        KLDBG("The release key(%d) isn't a processed by keyrouter!", ev->keycode);
-        goto focus_deliver;
-     }
-
    //KLDBG("The key(%d) is going to be sent to the proper wl client(s) !", ev->keycode);
    KLDBG("[%s] keyname: %s, key: %s, keycode: %d", (type == ECORE_EVENT_KEY_DOWN) ? "KEY_PRESS" : "KEY_RELEASE", ev->keyname, ev->key, ev->keycode);
    res = _e_keyrouter_send_key_events(type, ev);
@@ -206,6 +200,7 @@ _e_keyrouter_send_key_events_press(int type, Ecore_Event_Key *ev)
      }
    if (!_e_keyrouter_is_key_grabbed(ev->keycode))
      {
+        res = _e_keyrouter_send_key_events_focus(type, surface_focus, ev, &delivered_surface);
         return res;
      }