On Tuesday, March 10, 2015 at 9:32:58 AM UTC-7, Edward K. Ream wrote:
>
>
>
> On Tue, Mar 10, 2015 at 11:01 AM, Ben Fisher <[email protected] 
> <javascript:>> 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
>

Thank you, this works. I put the node under @settings/@commands since I 
want the shortcut to work for any outline.

-Ben 

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