Command Palette
Create a command palette
// ...
const cmd = ctx.newCommandPalette({
placeholder: "Search for something",
// The command palette will open when the user presses 't'
// You can choose to not have a keyboard shortcut
keyboardShortcut: "t",
})
// Open the command palette when the tray icon is clicked
tray.onClick(() => {
cmd.open()
})Keyboard shortcut
Items
Last updated