Rev 1714 of the trunk contains a substantial revision of how Leo
handle's key bindings.  I would be astounded if the new code just
worked for everybody, so please report any key problem immediately.

The new code in the qt plugin is much simpler than before, an
important step forward.  But there may be problems.  Notes:

1. All unit tests pass with both tk and qt.  A small but significant
change was made in Leo's core, and that change could result in some Tk
key bindings being handled differently.

2. The new qt code no longer attempts any translation of bindings like
Ctrl-{ to Ctrl-Shift-0.  You, the user, must use the second form, not
the first.  Imo, this is the simplest way of allowing people to set
the correct bindings for international keyboards.  I won't consider
adding other features unless it is clear that they are absolutely
needed.

3. I've add a new @shortcuts node to the EKR bindings tree in
leoSettings.leo::

@shortcuts duplicate bindings for Qt

# These are needed because Qt reports Ctrl-( as Ctrl-Shift-9, etc.
add-comments = Ctrl-Shift-9  # Ctrl-parenleft
delete-comments = Ctrl-Shift-0  # Ctrl-parenright
demote = Ctrl-Shift-]  # Ctrl-}
move-past-close  = Alt-Shift-0   # Alt-parenright
promote = Ctrl-Shift-[  # Ctrl-{

With these changes in place, Leo appears to work properly for these
commands in both Qt and Tk.  These duplicate bindings generate no
warnings, because they do not override existing bindings for *other*
commands; they merely give two equivalent bindings for the same
command.  Each gui honors one binding and ignores the other.

To repeat, it is almost certain that some key glitches remain.  Please
report any problem immediately, and feel free to ask for as much help
as you need.

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