2014-03-24 16:09 GMT+01:00 Tom Hacohen <[email protected]>: > You evas_object_event_callback_add on KEYDOWN and then set ON_HOLD. See > examples all across the EFL. >
hmmm, I neither can find a way to make this work... on what object we should attach the event? on the entry itself? on the window? on an evas rect over everything? I tried: 1. to attach elm_event_callback(...) to the entry and/or the window, but the mouse down seems "consumed" by the entry, I only got the UP event. 2. to attach evas_object_event_callback(MOUSE_DOWN...) to the Entry, here I get the event but it has the ON_HOLD flags set yet... 3 to create an invisible rect over everything, but it do not have the focus (that is on the entry) thus dont receive any event. Other ideas to try? This is very common task, every elm application sooner or later will require keyboard shortcuts, we should provide a simple way for doing this. btw, enventor seems to use core_events for this task. > > On 24/03/14 14:42, [email protected] wrote: > > What do I use in elementary to hold the event from my widget? > > > > > > On 3/24/14 9:08 Tom Hacohen wrote: > > > > On 23/03/14 00:08, Jeff Hoogland wrote: > >> Example Screen shot< > http://www.enlightenment.org/ss/e-532e24d8d0c3c6.14433647.jpg> > >> . > >> > >> Using elm_event_callback_add I've successfully been able to check when > >> control+desired key combination is pressed to trigger a file > save/open/new > >> file. However - when any key is pressed with control is held I get that > >> strange question mark character displayed above. How can I avoid this? I > >> don't want anything added to the entry when the control key is being > held. > >> > > > > > > That's the keycode generated. It's completely valid, and what should get > > in. If you'd like to have keybindings, you need to hold the event so it > > won't get to the entry. > > > > -- > > > > Tom. > > > > > > > ------------------------------------------------------------------------------ > > > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > > > http://www.enlightenment.org/ss/e-532e24d8d0c3c6.14433647.jpg > > _______________________________________________ > > > > enlightenment-devel mailing list > > > > [email protected] > > http://www.enlightenment.org/ss/e-532e24d8d0c3c6.14433647.jpg > > > > > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/13534_NeoTech > > _______________________________________________ > > enlightenment-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
