Sublime Forum

Blank hotkey?

#1

Hi,
I need to change a DEFAULT hotkey ---- shift+F11, I want to make it do nothing.(to avoid conflicting another software.)
Of course I can change it in “Default (Windows).sublime-keymap”, but I guess it’s better to do this in User settings.
How I write? like “{ “keys”: [“shift+f11”], “command”: “” }” ?

0 Likes

#2

You’re right, that’s totally a job for replacing the binding in your user settings; firstly because if you change the defaults, the setting can get reverted out from under you if Sublime updates itself, and secondly because the User package is always loaded last, so you can be sure that the key binding won’t get hijacked by a package.

Sublime doesn’t like an empty command as you have it above, as you’ve probably noticed. If you check in the Sublime console, you see:

Unable to parse binding {command: , keys: [shift+f11]}

Something like the following works:

 {"keys": ["shift+f11"], "command": "do_nothing"},

Basically, do_nothing as a command doesn’t actually exist, so when you press the key, nothing happens. I’m not sure if there’s an internal command designated for this or not, there doesn’t seem to be a documented one that I was able to find.

2 Likes

#3

{“keys”: [“shift+f11”], “command”: “do_nothing”},
That works great. Thanks for the instruction.

1 Like