On Sun, Jan 25, 2009 at 10:48 AM, Edward K. Ream <[email protected]>wrote:
>
> So more invention is needed. It looks like the find setup logic must be
> very careful not to select headline widgets!
>
The essence of the problem is that once we lose focus to the minibuffer,
there is no way to put Humpty-Dumpty back together again and use the
previous edit widget. It's gone forever, at least for Qt.
Some ideas that have **no chance** of working:
- Having all edit commands end editing. That would make it impossible to
type ctrl-a in a headline.
- Remembering the present edit widget. leoQtTree must be stateless.
We've must be more clever. Presumably, all find commands that call k.getArg
could check that the .w isn't a headline widget
(g.app.gui.widget_name().startswith('head'). It's ugly.
An alternative, **maybe**, is to force focus to the body pane initially for
all searches. In other words, the search setup code would ignore
event.widget. This might work...
Edward
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---