summaryrefslogtreecommitdiff
path: root/src/lib/elm_widget.c
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2013-09-10 14:01:50 +0900
committerShinwoo Kim <cinoo.kim@samsung.com>2013-09-10 14:01:50 +0900
commitef4a2e4227f481b2fe6f18ae41b5fae68f3db3c8 (patch)
treeff1fc740c744b165889a8a1af37488ac8accaa65 /src/lib/elm_widget.c
parent6d6f0e1b0b89d790bc68a2eecbbd2a7d64f6e286 (diff)
downloadelementary-ef4a2e4227f481b2fe6f18ae41b5fae68f3db3c8.tar.gz
[access] enhancement - refine function name to _elm_access_auto_highlight_set from _elm_access_read_mode_set
Diffstat (limited to 'src/lib/elm_widget.c')
-rw-r--r--src/lib/elm_widget.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 840b02710..cf008f855 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -26,8 +26,8 @@ EAPI Eo_Op ELM_WIDGET_BASE_ID = EO_NOOP;
if (!sd) return
#define ELM_WIDGET_FOCUS_GET(obj) \
- ((_elm_access_read_mode_get()) ? (elm_widget_highlight_get(obj)) : \
- (elm_widget_focus_get(obj)))
+ ((_elm_access_auto_highlight_get()) ? (elm_widget_highlight_get(obj)) : \
+ (elm_widget_focus_get(obj)))
typedef struct _Elm_Event_Cb_Data Elm_Event_Cb_Data;
typedef struct _Elm_Translate_String_Data Elm_Translate_String_Data;
@@ -2019,8 +2019,14 @@ _elm_widget_focus_cycle(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
if (target)
{
/* access */
- if (_elm_config->access_mode && _elm_access_read_mode_get())
+ if (_elm_config->access_mode)
{
+ /* highlight cycle does not steal a focus, only after window gets
+ the ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_ACTIVATE message,
+ target will steal focus, or focus its own job. */
+ if (!_elm_access_auto_highlight_get())
+ elm_widget_focus_steal(target);
+
_elm_access_highlight_set(target);
elm_widget_focus_region_show(target);
}