On Fri, Apr 1, 2011 at 1:17 AM, Edward K. Ream <[email protected]> wrote:


> In any case, please comment out the keyPressEvent method in qtGui.py
> and let me know if that solves the problem.  Thanks.

And, just try calling

QtGui.QTextBrowser.keyPressEvent(self,event)

there.

I doubt existence of keyPressEvent is a problem, but rather the
current implementation.

For one, it calls endCompleter pretty much all the time:

      if not active:
            if trace: g.trace('not active: calling base class')
            QtGui.QTextBrowser.keyPressEvent(self,event) # Call the base class.
            w.endCompleter()
            return

Would it be possible to just handle

        if key in ('\r','\n',qt.Key_Enter,qt.Key_Return):
            w.selectCallback()
            return

and otherwise call

QtGui.QTextBrowser.keyPressEvent(self,event)

?

-- 
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.

Reply via email to