On Thu, Sep 22, 2011 at 5:53 PM, mdb <[email protected]> wrote:
> I have enabled the plugin viewrendered
> and also created a button for it as so
>
> @button vw
> c.executeMinibufferCommand('viewrendered')
>
> But I can not bind this command to a shortcut, using
>
> @shortcut
> viewrendered = Alt-k
>
> Actually I want to bind toggle-rendered-pane to a shortcut but
> that does not work for me either
> Also if I set the shortcut for viewrendered, the button no longer
> works
I think the @button logic could be called buggy. It's essential to
pick a different name for the button than the command you are trying
to execute. If you don't, there will be a stack overflow. The code
should check for this, but doesn't.
Also note that some of the viewrendered commands may have changed
names recently. Here are the latest names::
'close-rendering-pane'
'hide-rendering-pane'
'lock-unlock-rendering-pane'
'pause-play-movie'
'show-rendering-pane'
'toggle-rendering-pane'
'update-rendering-pane'
'viewrendered'
'vr'
Anyway, the following works for me:
@button open-vr @key=Alt-9
c.k.simulateCommand('vr')
HTH
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.