elm_code: Allow widget to be focused.

Summary: This fixes a lost cursor with latest git.

Test Plan: elementary_test -> elm_code -> view a cursor

Reviewers: raster, ajwillia.ms

Reviewed By: raster

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7298
This commit is contained in:
Alastair Poole 2018-11-17 12:59:09 +00:00
parent 9d3e0000b2
commit be8b7e5210
1 changed files with 2 additions and 1 deletions

View File

@ -2383,7 +2383,8 @@ _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd)
elm_widget_theme_klass_set(obj, "code");
elm_widget_theme_element_set(obj, "layout");
elm_object_focus_allow_set(obj, EINA_TRUE);
legacy_object_focus_handle(obj);
elm_widget_can_focus_set(obj, EINA_TRUE);
pd->alpha = 255;
if (!elm_widget_theme_object_set(obj, wd->resize_obj,