On Oct 17, 6:07 am, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 17, 2008 at 5:24 AM, Edward K. Ream <[EMAIL PROTECTED]> wrote:
>
> > 1. Make arrows work in the body pane.
>
> There is a strange interaction between the call to
> action.setShortcut(accel) in leoQtMenu.add_command and key handling.
>
> If I disable this call, all key handling works, but alas, if I disable
> this call no keyboard shortcuts show up in the menu.
Oh joy. There is an easy workaround. Don't set the shortcut at all
and do:
if accel: label = '%s\t%s' % (label,accel)
That is, the tab properly aligns the accelerator.
This solves several problems. For example makes it possible to use
duplicate accelerators, or emacs-like or vim-like accelerators.
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
-~----------~----~----~----~------~----~------~--~---