Home Download Buy Blog Forum Support

Key binding assigned to "Cancel Build" not working

Key binding assigned to "Cancel Build" not working

Postby riazb on Thu Jan 19, 2012 2:04 pm

Hi All,
I tried adding this:

Code: Select all
{ "keys": ["ctrl+alt+c"], "command": "cancel_build" }


No joy. Does anyone know what the command should be? I've made sure ctrl-alt-c isn't clashing with anything else (I've also tried other key combinations).

Thanks
riazb
 
Posts: 2
Joined: Thu Jan 19, 2012 2:01 pm

Re: Key binding assigned to "Cancel Build" not working

Postby sublimator on Thu Jan 19, 2012 2:08 pm

Open the console and type:

>>> sublime.log_commands(True)
>>> sublime.log_input(True)

This should give some indication to whether the binding is working at all and if it is, which command it's routed to.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 648
Joined: Thu Mar 20, 2008 5:41 am

Re: Key binding assigned to "Cancel Build" not working

Postby jps on Thu Jan 19, 2012 2:09 pm

The command isn't cancel_build: take a look through Packages/Default/Main.sublime-menu to find the commands behind each of the menu items
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Key binding assigned to "Cancel Build" not working

Postby sublimator on Thu Jan 19, 2012 2:12 pm

Seems the default binding is this: { "keys": ["ctrl+break"], "command": "exec", "args": {"kill": true} }
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 648
Joined: Thu Mar 20, 2008 5:41 am

Re: Key binding assigned to "Cancel Build" not working

Postby riazb on Fri Jan 20, 2012 11:24 am

Magic!

Changed to:
Code: Select all
{ "keys": ["ctrl+alt+c"], "command": "exec", "args": {"kill": true} }

and it works great.

Can't confirm Ctrl-Break works - on a Macbook keyboard.

Thanks lots for your help.
riazb
 
Posts: 2
Joined: Thu Jan 19, 2012 2:01 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests

cron