MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / handlePromptClickEvent

Function handlePromptClickEvent

lib/pops/src/handler/PopsHandler.ts:533–561  ·  view source on GitHub ↗

* 处理prompt的点击事件 * @param type 触发事件类型 * @param inputElement 输入框 * @param $btn 按钮元素 * @param eventConfig 事件配置,由popsHandler.handleEventConfig创建的 * @param callback 点击回调

(
    type: PopsHandlerEventConfig<E>["type"],
    inputElement: HTMLInputElement | HTMLTextAreaElement,
    $btn: HTMLElement,
    eventConfig: PopsEventConfig<E>,
    callback: (
      details: PopsEventConfig<E> & {
        type: any;
        text: string;
      },
      event: MouseEvent | PointerEvent
    ) => void
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

callbackFunction · 0.50
onMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected