kayvanbree / contexr

Stop redundantly defining your shortcuts in your shortcut library and your context menu. Start using Contexr!
MIT License
4 stars 0 forks source link

Callback to hide options and their hotkeys #69

Open kayvanbree opened 2 months ago

kayvanbree commented 2 months ago

A callback that would be used to hide the option from the menu (grayed out and unclickable) and pause the corresponding hotkey.

{
    label: "Disabled",
    hidden: () => { this.selected ==  null; }
}