Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
onEsc
Function · 0.85
ndialog
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected