@duckduckgo/content-scope-scripts
    Preparing search index...

    Interface ContextMenuOpenedParams

    Sent on contextmenu while enabled, whatever showToolbar says, so native's menu can offer the actions that fit the selection, and native can show its toolbar for it, collapsed, once the menu closes. Without a selection it's { text: "" }.

    interface ContextMenuOpenedParams {
        devicePixelRatio?: number;
        editable?: boolean;
        language?: string;
        rect?: SelectionRect;
        selectedTextKey?: string;
        selectionType?: SelectionType;
        text: string;
    }
    Index
    devicePixelRatio?: number

    The page's window.devicePixelRatio, which includes page zoom. Present with rect.

    editable?: boolean

    Whether the selection is in an editable field. Absent without a selection.

    language?: string

    The selection's language as a primary subtag, e.g. "es", from the nearest lang attribute. Absent when the page doesn't say, which native takes as the user's language.

    selectedTextKey?: string

    Pairs this report with the browser's own context menu event. The 32-bit FNV-1a hash, as 8 lowercase hex digits, of the selection as the browser reports it, hidden text included, over its UTF-16 code units after collapsing each run of ECMAScript whitespace (\s) to one space and trimming. Absent without a selection.

    selectionType?: SelectionType
    text: string

    The selected text, without text the user can't see. Empty without a selection.