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)
commit3628a8c4ea2485ee7ee5a81cfd4e0f0fe62b10d6
treeb7ec3432e51f88e6b399aab4ab23d40205a039fb
parente26e00d20f757ec260ded581ef00dea4cdf42e04
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:
src/bin/test.c
src/bin/test_genlist.c
src/bin/test_list.c
src/lib/elm_gen_common.h
src/lib/elm_genlist.c
src/lib/elm_genlist_eo.h
src/lib/elm_genlist_legacy.h
src/lib/elm_list.c
src/lib/elm_list_eo.h
src/lib/elm_list_legacy.h
src/lib/elm_widget_genlist.h
src/lib/elm_widget_list.h