On 05/07/13 10:06 -0700, Demoy Blake wrote: > > > On Wednesday, July 3, 2013 11:53:00 AM UTC-5, Demoy Blake wrote: > > > > I would like to be able to *query** records each time search filter text > > is altered*. > > i.e I type "c" into search filter (from the Modules tree view) *without > > pressing enter* and "calendar,country,currency" are show in tree view. > > > > where shall I go to implement this functionality if not already present. > > > > I have the instant search going by adding "gobject.idle_add(self.activate)" > to the "key_press" method in screen_container... however the search bar > lose focus after each input how may I prevent this.
It is because activate calls do_search which calls Screen.search_filter which calls Screen.load and there is a call to set_cursor which change the position of the cursor. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpoOXaaoS10c.pgp
Description: PGP signature
