Sublime Forum

Alternative to Alt+X to open menu items from a plugin

#1

Since I rarely use the GUI menus, I’d like to use the convenient keybinds like Altf for some text editing commands. But at the same time whenever I do use the menu, the f for File menu is a good combo of a memorable mnemonic and convenient location, so I’d like to keep that.

The solution is to hide the menu layer behind a prefix, so, let’s say, I’d press Altm to trigger a “menu mode” and then f would open the File menu.

However, what I don’t understand is how to programmatically (from within a plugin) to open the GUI menu? Is there some API OpenMenuID('FileMenu')?

0 Likes