#Hotkeys for tray menu?

3 messages · Page 1 of 1 (latest)

white cliff
chilly cloud
#

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")
  )
white cliff