On Tue, Mar 10, 2015 at 11:01 AM, Ben Fisher <[email protected]> wrote:

> Hi,
>
> I was wondering what the best way is to bind more than one command to a
> keyboard shortcut.
>
> For example, I'd like Ctrl-q to not be quit, but to run both
> ​​
> gui-menu-toggle
> ​​
> ​​
> ​​
> gui-minibuffer-toggle
>
> I can see how this would be done with a plugin, but there is likely a
> simpler way.
>

​Use @button or @command::

    (the headline)
    @command new-keyboard-quit @key=Ctrl-Q
    (the body text)
    ​c.k.simulateCommand('gui-menu-toggle')
    c.k.simulateCommand(
'​​​​gui-minibuffer-toggle')

HTH.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to