On 06.11.2012 19:42, Terry Brown wrote:
On Tue, 6 Nov 2012 09:14:24 -0600
"Edward K. Ream"<[email protected]> wrote:
There is such a hook. It is called "headkey2". For exact details of
how this works, see onHeadChanged in leoTree.py. Note that this hook
can be called even if no actual change has been made to the headline.
It looks like that's called after every keystroke, which would be
inappropriate timing for wrapping the text, I would think, although it
might work. OP wanted something called on the transition from edit to
non-edit state I think.
Exactly, I intentionally called it onHeadlineEditingFinished because I
don't want the code executed on every change. And because there is a
clear transition from edit mode to non-edit mode I thought this would be
an appropriate time for an event to get fired.
Thanks,
Stefan
--
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.