elementary: Focus improvement for elm_genlist and elm_list

Desktop / Enlightenment / Elementary - Yossi Kantor [samsung.com] - 12 May 2013 07:32 UTC

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.

3628a8c elementary: Focus improvement for elm_genlist and elm_list
src/bin/test.c | 8 ++-
src/bin/test_genlist.c | 146 ++++++++++++++++++++++++++++++++++++++++++
src/bin/test_list.c | 136 +++++++++++++++++++++++++++++++++++++++
src/lib/elm_gen_common.h | 1 +
src/lib/elm_genlist.c | 123 +++++++++++++++++++++++++++++++++++
src/lib/elm_genlist_eo.h | 25 ++++++++
src/lib/elm_genlist_legacy.h | 27 ++++++++
src/lib/elm_list.c | 127 ++++++++++++++++++++++++++++++++++--
src/lib/elm_list_eo.h | 26 ++++++++
src/lib/elm_list_legacy.h | 27 ++++++++
src/lib/elm_widget_genlist.h | 1 +
src/lib/elm_widget_list.h | 1 +
12 files changed, 643 insertions(+), 5 deletions(-)

Upstream: git.enlightenment.org


  • Share