On Tue, 22 Sep 2009 11:14:39 +0200 Nicolas Aguirre <aguirre.nico...@gmail.com> said:
i think it makes perfect sense, though to be honest i think there is much more needed - like full keyboard control ability in elementary. right now it effectively has none. or close to none. no focus changing ability etc. etc. this would be a case where genlist itself should be handling such events and hilighting the appropriate item. one thing i know we need to do is something better than just "tab & shift+tab" for focusing prev/next item. we need to 1. provide a way to give a linear list of focusable objects so the above works in the best possible way (the most logical one). 2. we need up/down/left/right to actually focus the closest widget in that direction. eg if the currently focused widget is a button - thse will find the closest widget geometrically.if its a list left/right do this, up/down select in the list.. UNTIL the last or first items are reached, then focus jumps out of the list to the closes geometric object. one other thing needed is a "focus overlay" object. this is a native element of a window object. it is on a high layer (eg 10000) and will move to be over the focused object and be the size of the focused object/widget (for a list the list outside scroller will be focused but individual items would hilight as they do now). this would just be some edje that u emit signals to when a new object is focused. resize/move it and animate the moving/sizing so its nice. and this object would fade away/hide when the window loses focus. this way this can be an optional element. for pure touchscreen devices you don't want it. for others you do. > Hi guys, > > in Enna, I use elementary since a while now, and I have a little > problem that I would like to fix. I explain : > In enna's file browser, I use genlist to display files. The item > selection can be done either with mouse or with keyboard/remote > control. > To select items with keyboard I select them programatically with > elm_genlist_item_selected_set(it, 1). When I do that, the selected > callback passed in argument in elm_genlist_item_add is called, same > behavior than if user click with mouse. This behavior is completely > normal. > > When I browse with keyboard I want that the next/prev items are only > highlight when user press key_up/key_down and select it when he press > key_enter. So I pass NULL to the callback function parameter and catch > the "clicked" callback which is send when the user double click on an > item (and not the "selected" one). This is this behavior that I would > like to change in Enna. Have a one click selection with mouse, and > continued to be able to browse with keyboard. > > What do you think if I add these 3 new functions in elm_genlist ? > > EAPI Elm_Genlist_Item *elm_genlist_hilighted_item_get(const Evas_Object *obj); > EAPI void > elm_genlist_item_hilighted_set(Elm_Genlist_Item *item, Eina_Bool > hilighted); > EAPI Eina_Bool elm_genlist_item_hilighted_get(const > Elm_Genlist_Item *item); > > "hilighted" state of the item will change in line with the "selected" > state, AND when elm_genlist_item_hilighted_set is called. > elm_genlist_hilighted_item_get retrieve item that is actually in > "hilighted" state. > > You maybe don't want such behaviour in elm ? And there ise maybe other > way to do that, so any comments will be appreciated :) > > regards, > > > -- > Nicolas Aguirre > Mail: aguirre.nico...@gmail.com > Web: http://www.digital-corner.org > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel