jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps
BSD 3-Clause "New" or "Revised" License
3.09k stars 179 forks source link

Setting a global shortcut to a menu item #103

Open fredthedead opened 5 years ago

fredthedead commented 5 years ago

Is there a way to set a global shortcut to a menu item? (so for example no matter which application I'm at, without clicking the menu bar icon, I could press the shortcut key and the menu item's function would be called)

jaredks commented 5 years ago

I'm fairly confident this is not possible. Seems like it would be a loophole for some malicious stuff.

AlexanderWillner commented 3 years ago

Probably possible via https://github.com/feeluown/FeelUOwn/blob/602fe097305474441dadd8c0fb223538b1f72cc2/feeluown/global_hotkey_mac.py

the question is: can we show the whole menu with a shortcut?