Hi,
I created an extension that has a toolbar button which opens a popover window.
Is it possible to assign a keyboard shortcut to open the popover window?
I tried to add a keyboard shortcut for Safari using the toolbar button text (text you see when you hover over the button) as an identifier but that didn't work.
Thank you,
Kristof
On the latest version of Safari, there is an API to open the popover:
However, setting up a keyboard shortcut is tricky, as there currently isn't a supported way to do it. You could inject a content script that listens for your shortcut and sends a message to your Safari App Extension.
Please file a radar about the keyboard shortcuts?
Thanks!