We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 1 reply
  • 1 has this problem
  • 1 view
  • Last reply by 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 }

All Replies (1)

more options

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