elementary: Focus improvement for elm_genlist and elm_list
authorYossi Kantor <yossi.kantor@samsung.com>
Wed, 20 Feb 2013 10:00:49 +0000 (12:00 +0200)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Sun, 12 May 2013 12:32:33 +0000 (15:32 +0300)
commit2e1eacd0ba821765a9f4c27f7f8e5d57cc25ff02
treeb9491cca44242c2ba0e3d8932f4b0650e2ee5a3f
parent698063a9887e245bd7e25a84ee5f4e940f47faf8
elementary: Focus improvement for elm_genlist and elm_list

Summary:
This patch applies automatic focus feature to elm_genlist and elm_list
containers.
Currently (prior to this patch), focusable widgets inside list items of both
containers receive focus by an explicit mouse click over them, and lose focus
when focus goes to someone else in the window.
This change also adds the ability to:
- focus by default on the first-from-right focusable widget upon items selection
- lose the focus when another item is selected (focused or not)
- move focus between focusable widgets inside the same item by left and right
arrow keys accordingly (up and down keys when elm_list is in horizontal mode)

Focus is supported for horizontal and vertical lists.

Tests have been added for genlists and lists to check focus feature.
12 files changed:
legacy/elementary/src/bin/test.c
legacy/elementary/src/bin/test_genlist.c
legacy/elementary/src/bin/test_list.c
legacy/elementary/src/lib/elm_gen_common.h
legacy/elementary/src/lib/elm_genlist.c
legacy/elementary/src/lib/elm_genlist_eo.h
legacy/elementary/src/lib/elm_genlist_legacy.h
legacy/elementary/src/lib/elm_list.c
legacy/elementary/src/lib/elm_list_eo.h
legacy/elementary/src/lib/elm_list_legacy.h
legacy/elementary/src/lib/elm_widget_genlist.h
legacy/elementary/src/lib/elm_widget_list.h