forked from enlightenment/enventor
ctxpopup: fix a broken ctxpopup image relay behavior.
grab keys to ensure key events. fix @T3271
This commit is contained in:
parent
d271175953
commit
99eee8091e
|
@ -825,6 +825,13 @@ ctxpopup_img_preview_create(edit_data *ed,
|
|||
ctxpopup_mouse_wheel_cb, ctxdata);
|
||||
evas_object_focus_set(ctxpopup, EINA_TRUE);
|
||||
|
||||
if (!evas_object_key_grab(ctxpopup, "Up", 0, 0, EINA_TRUE))
|
||||
EINA_LOG_ERR("Failed to grab key - Up");
|
||||
if (!evas_object_key_grab(ctxpopup, "Down", 0, 0, EINA_TRUE))
|
||||
EINA_LOG_ERR("Failed to grab key - Down");
|
||||
if (!evas_object_key_grab(ctxpopup, "BackSpace", 0, 0, EINA_TRUE))
|
||||
EINA_LOG_ERR("Failed to grab key - BackSpace");
|
||||
|
||||
return ctxpopup;
|
||||
}
|
||||
|
||||
|
@ -935,6 +942,13 @@ ctxpopup_candidate_list_create(edit_data *ed, attr_value *attr,
|
|||
evas_object_smart_callback_add(ctxpopup, "dismissed", ctxpopup_dismiss_cb,
|
||||
ed);
|
||||
|
||||
if (!evas_object_key_grab(ctxpopup, "Up", 0, 0, EINA_TRUE))
|
||||
EINA_LOG_ERR("Failed to grab key - Up");
|
||||
if (!evas_object_key_grab(ctxpopup, "Down", 0, 0, EINA_TRUE))
|
||||
EINA_LOG_ERR("Failed to grab key - Down");
|
||||
if (!evas_object_key_grab(ctxpopup, "BackSpace", 0, 0, EINA_TRUE))
|
||||
EINA_LOG_ERR("Failed to grab key - BackSpace");
|
||||
|
||||
return ctxpopup;
|
||||
|
||||
err:
|
||||
|
|
Loading…
Reference in New Issue