The window.selection don't work after a hotkey CTRL+SHIFT+0
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)
You can try to ask at the Add-ons forum website.