}
static Eina_Bool
-_tree_unfocusable(Eo *obj)
-{
- Efl_Ui_Widget *wid = obj;
-
- do {
- ELM_WIDGET_DATA_GET(wid, wid_pd);
-
- if (wid_pd->tree_unfocusable) return EINA_TRUE;
- } while((wid = elm_widget_parent_widget_get(wid)));
-
- return EINA_FALSE;
-}
-
-static Eina_Bool
_tree_custom_chain_missing(Eo *obj)
{
Efl_Ui_Widget *wid = obj;
}
static Eina_Bool
-_tree_disabled(Eo *obj)
+_tree_disabled_or_unfocusable(Eo *obj)
{
Efl_Ui_Widget *wid = obj;
ELM_WIDGET_DATA_GET(wid, wid_pd);
if (wid_pd->disabled) return EINA_TRUE;
+ if (wid_pd->tree_unfocusable) return EINA_TRUE;
} while((wid = elm_widget_parent_widget_get(wid)));
return EINA_FALSE;
//can focus can be overridden by the following properties
if (!efl_isa(elm_widget_top_get(obj), EFL_UI_WIN_CLASS) ||
(!pd->parent_obj) ||
- (_tree_unfocusable(obj)) ||
- (_tree_disabled(obj)) ||
+ (_tree_disabled_or_unfocusable(obj)) ||
(_tree_custom_chain_missing(obj)) ||
(!evas_object_visible_get(obj)))
return;