搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Menu title for Mac Share Sheet to create shortcut?

  • 4 回覆
  • 1 有這個問題
  • 56 次檢視
  • 最近回覆由 mythicsoul

more options

In Firefox on my Mac, I frequently click on the Page Actions ("three little dots") at the end of the URL bar, and then from the options that pop up, click on "Share" that takes me to the Mac Share Sheet options (Air Drop, Messages, Mail, etc.)

In Mac System Preferences for the keyboard, you can create keyboard shortcuts for any application, and I'd like to create one for this action in Firefox. I just need to know the menu pathway. For example, in Safari, it is "File->Share->[Air Drop, Messages, Mail, etc.]"

I cannot find/figure out the menu pathway in Firefox for the Mac Share Sheet. Can anyone help??

I've added screenshots of: 1) Accessing the Share Sheet in Firefox via the "three little dots" in the URL bar 2) The Mac System Preferences Keyboard Shortcuts creation window showing the menu pathway title I'm needing to figure out 3) The Share Sheet menu pathway in Safari for comparison/reference

TIA!

In Firefox on my Mac, I frequently click on the Page Actions ("three little dots") at the end of the URL bar, and then from the options that pop up, click on "Share" that takes me to the Mac Share Sheet options (Air Drop, Messages, Mail, etc.) In Mac System Preferences for the keyboard, you can create keyboard shortcuts for any application, and I'd like to create one for this action in Firefox. I just need to know the menu pathway. For example, in Safari, it is "File->Share->[Air Drop, Messages, Mail, etc.]" I cannot find/figure out the menu pathway in Firefox for the Mac Share Sheet. Can anyone help?? I've added screenshots of: 1) Accessing the Share Sheet in Firefox via the "three little dots" in the URL bar 2) The Mac System Preferences Keyboard Shortcuts creation window showing the menu pathway title I'm needing to figure out 3) The Share Sheet menu pathway in Safari for comparison/reference TIA!
附加的畫面擷圖

被選擇的解決方法

I assume that this Share menu is created dynamically via JavaScript and I don't think there is a real path to open/access this menu. Even going to the page action menu via the keyboard on Windows/Linux requires to access the location bar and then press the Tab key to jump to the page actions container. You can use the cursor Left/Right keys to navigate in this container and press Enter to activate an item or open a sub menu.

For "Send Tab to Device" I see these elements in the Browser Toolbox: Page Action menu: toolbarbutton#pageAction-panel-sendToDevice (ID); label="Send Tab to Device" Panel that opens if I click this item: panelview#pageAction-panel-sendToDevice-subview (ID) Body of this panel: vbox#pageAction-panel-sendToDevice-subview-body (ID) Device in this panel: toolbarbutton.pageAction-sendToDevice-device (class); label="<name of device>"


從原來的回覆中察看解決方案 👍 2

所有回覆 (4)

more options

You might try BrowserPageActions, or "pageActionPanel" but i wouldn't know if the Mac keyboard macro thing is going to find it like a traditional menu - it isn't a menu with a menu ID, it's a "panel". If the same thing can turn up in a right-click context menu on the page, and a "menu" is required, then perhaps "pageActionContextMenu".

It may just be that you skip this, and add the actual menu item, which is "Share". (But it is listed as a panel item, not a menu item...) I do not have any "share" in my menu and checking the browser's chrome is a bit iffy as i am no expert. "BrowserPageActions.shareURL" could possibly cover it.

Maybe one of these will work. Otherwise, i would hope someone expert in the code and working of Firefox will answer.

more options

選擇的解決方法

I assume that this Share menu is created dynamically via JavaScript and I don't think there is a real path to open/access this menu. Even going to the page action menu via the keyboard on Windows/Linux requires to access the location bar and then press the Tab key to jump to the page actions container. You can use the cursor Left/Right keys to navigate in this container and press Enter to activate an item or open a sub menu.

For "Send Tab to Device" I see these elements in the Browser Toolbox: Page Action menu: toolbarbutton#pageAction-panel-sendToDevice (ID); label="Send Tab to Device" Panel that opens if I click this item: panelview#pageAction-panel-sendToDevice-subview (ID) Body of this panel: vbox#pageAction-panel-sendToDevice-subview-body (ID) Device in this panel: toolbarbutton.pageAction-sendToDevice-device (class); label="<name of device>"


more options

It does all look context-dependent and dynamically created, and no actual menu ids.

more options

Thank you both for your help! Too bad it turns out there's no way to make a keyboard shortcut for this. But I'm glad to know for certain one way or another.