how would one in the tray add a hotkey ⌘Q thingy is that supported? searched the docs, sources on github cannot find how this is called in tray here its implemented in a menu https://github.com/vicanso/cyberapi/blob/90e5339b3d0236648380e910d7b9cef5f7b3eb9a/src/helpers/hot_key.ts#L40 but need it in the tray instead. hotkey shortkey not know the right naming for it
Image
#Hotkeys for tray menu?
3 messages · Page 1 of 1 (latest)
When creating the tray, add an accelerator to the CustomMenuItem and it will show up in the tray like you expect it to.
Code sample:
let tray_menu = SystemTrayMenu::new()
.add_item(
CustomMenuItem::new("quit", "Quit")
.accelerator("CommandOrControl+Q")
)
Ahhh that was it ! Could not recall🙏🙏