MCPcopy Index your code
hub / github.com/xcanwin/KeepChatGPT / closeDialog

Function closeDialog

KeepChatGPT.user.js:592–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

590
591 // 统一关闭逻辑,保证点击遮罩和取消按钮行为一致。
592 const closeDialog = function () {
593 ndivalert.remove();
594 document.removeEventListener("keydown", onEsc);
595 };
596 const onEsc = function (event) {
597 if (event.key === "Escape") {
598 closeDialog();

Callers 2

onEscFunction · 0.85
ndialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected