On Nov 12, 8:18 am, "Ville M. Vainio" <[EMAIL PROTECTED]> wrote:

> 1) Leo updates the text control in a wrong way AND
> 2) Leo updates the text control in the first place ;-)

> It should not be necessary for leo to do anything this drastic when
> enter is pressed. It slows down the text editing, potentially quite a
> bit.

I'm sorry, but this is simply not correct.
leoEditCommands.selfInsertCommand ensures that keys like tab,
backspace and return are handled properly.  This code does not exist
in any Qt text widget.  Furthermore, handling keys in the minibuffer
is even more complicated--there is simply no alternative to catching
those keys and doing something non-standard with them.  Finally, none
of Leo's key-binding flexibility would not be possible if Leo did not
understand in great detail exactly what key is being pressed and
where.

Handling keys is tricky, no question about it, but not handling keys
at all is not an option.  We have discussed this before.  I am not
going to throw out years of work to make eventFilter a little cleaner.

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

Reply via email to