Just a heads up that I've fiddled with the doubleclick handling code on the trunk, please let me know asap if anything seems odd.
In accordance with: http://webpages.charter.net/edreamleo/scripting.html#event-handlers I think this (in onItemDoubleClicked) is appropriate: if p: event = None - g.doHook("icondclick1",c=c,p=p,v=p,event=event) - c.frame.tree.OnIconDoubleClick(p) # Call the base class method. - g.doHook("icondclick2",c=c,p=p,v=p,event=event) + if g.doHook("icondclick1",c=c,p=p,v=p,event=event) is None: + c.frame.tree.OnIconDoubleClick(p) # Call the base class method. + g.doHook("icondclick2",c=c,p=p,v=p,event=event) else: g.trace('*** no p') however it didn't fix the problem I was trying to fix, namely that doubleclicks which open new outlines also start editing in the source outline and leave the focus there. If you start typing in the new visible outline your actually trashing the headline in the now obscured source outline. Possibly only in qttabs, the window switch may avoid the problem in the non-tab gui. I'll keep trying to track it down. Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
