On Wed, 9 Mar 2011 20:19:23 +0100 "Christian K." <waffenkl...@googlemail.com> said:
> Yes, understood. > > >What's your use case? Other than simple tests? > > I write a calculator module, mainly with edje and embryo, and i wanted to > add a quick keyboard entry. > For the numbers i use elementary buttons, but they simply call internal > embryo functions. > > But the point of getting the focus was a matter i thought of too. Its okay > if this wont work, was just an idea. well.. edje wasnt an app development lang. it is not meant to do things like a calculator - it's meant to interact with an app that does the calculator bits and just handle the display layer and some input bits. i decided handling mouse was relevant as mouse is contextual based on where you click, but key presses are not. you will, as a user of edje, set focus to the edje obj and beyond that you dont really know of all its internal bits and what may or may not have focus - and then keys pressed will vary a lot between devices, desktops etc. and you generally want to virtualise a key press into a generic signal that can be emitted from the app after translating the key press into the higher-level "signal" > 2011/3/9 Gustavo Sverzut Barbieri <barbi...@profusion.mobi> > > > On Wed, Mar 9, 2011 at 2:25 PM, Christian K. <waffenkl...@googlemail.com> > > wrote: > > > Well, okay. > > > > > > Just for information: Any reason why? I'm curious. > > > > because there was never a reason (= use case) for that. First of all, > > the object itself needs to have focus to receive events > > (evas_object_focus_set(obj, EINA_TRUE)), and those who set this are > > the ones that often react to these events... they are more complex to > > handle, do you need keyname, symbol, modifiers? > > > > What's your use case? Other than simple tests? > > > > NB: if you have a TEXTBLOCK that is editable you can do more to it, it > > is used as the base for elementary's elm_entry, so if you want > > something like that, take a look there. > > > > > > -- > > Gustavo Sverzut Barbieri > > http://profusion.mobi embedded systems > > -------------------------------------- > > MSN: barbi...@gmail.com > > Skype: gsbarbieri > > Mobile: +55 (19) 9225-2202 > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > 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 ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel