forked from enlightenment/efl
elm: Re-order focus tests
Placing the cheapest tests first can save on some heavy walks. Differential Revision: https://phab.enlightenment.org/D7313 Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com>
This commit is contained in:
parent
b8f6323a36
commit
30be434fb1
|
@ -483,11 +483,11 @@ _eval_registration_candidate(Eo *obj, Elm_Widget_Smart_Data *pd, Eina_Bool *shou
|
||||||
*should = *want_full = EINA_FALSE;
|
*should = *want_full = EINA_FALSE;
|
||||||
|
|
||||||
//can focus can be overridden by the following properties
|
//can focus can be overridden by the following properties
|
||||||
if (!efl_isa(elm_widget_top_get(obj), EFL_UI_WIN_CLASS) ||
|
if ((!pd->parent_obj) ||
|
||||||
(!pd->parent_obj) ||
|
(!evas_object_visible_get(obj)) ||
|
||||||
|
!efl_isa(elm_widget_top_get(obj), EFL_UI_WIN_CLASS) ||
|
||||||
(_tree_disabled_or_unfocusable(obj)) ||
|
(_tree_disabled_or_unfocusable(obj)) ||
|
||||||
(_tree_custom_chain_missing(obj)) ||
|
(_tree_custom_chain_missing(obj)))
|
||||||
(!evas_object_visible_get(obj)))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (pd->can_focus)
|
if (pd->can_focus)
|
||||||
|
|
Loading…
Reference in New Issue