summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <cleanlyj@naver.com>2018-07-16 06:09:29 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-07-16 06:09:29 -0400
commita61786bd0e3a5508945d57d5aa5f55b68182e0b0 (patch)
treece0995463100ff7ed20d3ba382f9aba946268c68
parenta475b189618f99388e4b37e0f8be823d87102f62 (diff)
elm_spinner: Do not focus to text button on non-editable mode
Summary: text button don't need to be focused if spinner is non-editable mode. ref T6798 Test Plan: 1. elementary_test -to spinner 2. Focus second spinner 3. move focus using key. 4. turn on access mode and test 1-3 again. Reviewers: CHAN Reviewed By: CHAN Subscribers: cedric, #committers, zmike Tags: #efl Maniphest Tasks: T6798 Differential Revision: https://phab.enlightenment.org/D6581
-rw-r--r--src/lib/elementary/elm_spinner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_spinner.c b/src/lib/elementary/elm_spinner.c
index fc0b4250e9..3c2c08c727 100644
--- a/src/lib/elementary/elm_spinner.c
+++ b/src/lib/elementary/elm_spinner.c
@@ -1220,6 +1220,7 @@ _elm_spinner_efl_canvas_group_group_add(Eo *obj, Elm_Spinner_Data *priv)
1220 1220
1221 priv->text_button = elm_button_add(obj); 1221 priv->text_button = elm_button_add(obj);
1222 elm_object_style_set(priv->text_button, "spinner/default"); 1222 elm_object_style_set(priv->text_button, "spinner/default");
1223 elm_widget_can_focus_set(priv->text_button, _elm_config->access_mode);
1223 1224
1224 efl_event_callback_add 1225 efl_event_callback_add
1225 (priv->text_button, EFL_UI_EVENT_CLICKED, _text_button_clicked_cb, obj); 1226 (priv->text_button, EFL_UI_EVENT_CLICKED, _text_button_clicked_cb, obj);
@@ -1595,6 +1596,7 @@ EOLIAN static void
1595_elm_spinner_editable_set(Eo *obj EINA_UNUSED, Elm_Spinner_Data *sd, Eina_Bool editable) 1596_elm_spinner_editable_set(Eo *obj EINA_UNUSED, Elm_Spinner_Data *sd, Eina_Bool editable)
1596{ 1597{
1597 sd->editable = editable; 1598 sd->editable = editable;
1599 elm_widget_can_focus_set(sd->text_button, editable | _elm_config->access_mode);
1598} 1600}
1599 1601
1600EOLIAN static Eina_Bool 1602EOLIAN static Eina_Bool