Sublime Forum

Unbind key binding in ST4

#1

Is there an official way to unbind the default key binding on ST4? If not, which one is better?
{ "keys": ["ctrl+-"], "command": "noop" }

Or just remove the command attribute
{ "keys": ["ctrl+-"]}

0 Likes

#2

This won’t work. So you have no choice here.

0 Likes

#3

Hi, do you mean the only way is { "keys": ["ctrl+-"], "command": "noop" }?

But is the command noop really supported? I cannot find this command on the official documentation…

0 Likes

#4

It was added as of a certain ST version.

I cannot find this command on the official documentation…

I don’t think (any) commands are documented.

0 Likes

#5

The noop command was added in ST 4134

So if you are using older ST builds, you would have to create your own noop command.

import sublime_plugin


class NoopCommand(sublime_plugin.ApplicationCommand):
    def run(self) -> None:
        pass
3 Likes