搜尋 Mozilla 技術支援網站

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

了解更多

The window.selection don't work after a hotkey CTRL+SHIFT+0

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I try to program an extension, after a CTRL+SHIFT+0 I would like to get the selected text in any web page. But I can't. The hotkey works, not the selected text. I have this from the console:

Selection { anchorNode: null, anchorOffset: 0, focusNode: null, focusOffset: 0, isCollapsed: true, rangeCount: 0, caretBidiLevel: null }

I try to program an extension, after a CTRL+SHIFT+0 I would like to get the selected text in any web page. But I can't. The hotkey works, not the selected text. I have this from the console: Selection { anchorNode: null, anchorOffset: 0, focusNode: null, focusOffset: 0, isCollapsed: true, rangeCount: 0, caretBidiLevel: null }

所有回覆 (1)

more options

You can try to ask at the Add-ons forum website.