selection: isCaretNode ? getSelection()

in src/lib/api/event.recorder.ts [265:280]


        selection: isCaretNode ? getSelection(node as HTMLInputElement) : undefined
      };
    } else if (eventName !== 'change' && eventName !== 'focusout') {
      prebootData.activeNode = undefined;
    }

    // if overlay is not disabled and we are freezing the UI
    if (opts && !opts.disableOverlay && eventSelector.freeze) {
      const overlay = root.overlay as HTMLElement;

      // show the overlay
      overlay.style.display = 'block';

      // hide the overlay after 10 seconds just in case preboot.complete() never
      // called
      setTimeout(() => {