Sublime Forum

Disable ALT default key binding to toggle menu?

#1

None of these works:

{ "keys": ["alt"], "command": "" }
{ "keys": ["alt"], "command": "pass" }
{ "keys": ["alt"], "command": false }

I had it disabled with { "keys": ["alt"], "command": "" } in 4113 on Ubuntu Linux

0 Likes

#2

The menu isn’t shown using a keybinding. See the "reveal_menu" setting.

0 Likes

#3

Now (4121) a nonexistent command is just ignored. You may try to create an empty command like

import sublime_plugin


class NopCommand(sublime_plugin.ApplicationCommand):
    pass

and use

{ "keys": ["alt"], "command": "nop" }
0 Likes

#4

Thank you both. I ended up using the reveal_menu setting, but I will definitely bookmark that other approach with the command.

My workflow coming from ST3 is to do ctrl+shift+p and type view to toggle the menu on and off.

0 Likes