hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=1262c24a72a314bc3dd1de014283068cd390e88c

commit 1262c24a72a314bc3dd1de014283068cd390e88c
Author: Hosang Kim <hosang12....@samsung.com>
Date:   Wed Sep 16 10:10:32 2015 +0900

    slider: slider should be focused, when slider is handled with mouse or 
touch event.
    
    Summary: slider is not focused after slider is dragged.
    
    Test Plan: elementary_test -> slider
    
    Reviewers: woohyun, seoz, smohanty, cedric, raster
    
    Differential Revision: https://phab.enlightenment.org/D3057
---
 src/lib/elm_slider.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index bffab0a..25cd4a7 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -240,6 +240,8 @@ _drag_start(void *data,
             const char *emission EINA_UNUSED,
             const char *source EINA_UNUSED)
 {
+   if (!elm_widget_focus_get(data))
+     elm_object_focus_set(data, EINA_TRUE);
    _slider_update(data, EINA_TRUE);
    eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_SLIDER_DRAG_START, 
NULL));
    elm_widget_scroll_freeze_push(data);
@@ -644,6 +646,8 @@ _spacer_down_cb(void *data,
    edje_object_part_drag_value_set
      (wd->resize_obj, "elm.dragable.slider",
      button_x, button_y);
+   if (!elm_widget_focus_get(data))
+     elm_object_focus_set(data, EINA_TRUE);
    _slider_update(data, EINA_TRUE);
    eo_do(data, eo_event_callback_call(ELM_SLIDER_EVENT_SLIDER_DRAG_START, 
NULL));
    elm_layout_signal_emit(data, "elm,state,indicator,show", "elm");

-- 


Reply via email to