MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / closeModal

Function closeModal

scroll-to-top-button/scroll-to-top-button.user.js:138–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 document.getElementById('closeModal').addEventListener('click', closeModal)
137 }
138 function closeModal() {
139 let modal = document.getElementById('hotkeyModal')
140 if (modal) {
141 modal.remove()
142 }
143 }
144 document.addEventListener('keydown', function (event) {
145 if (event.target.matches('input, textarea, [contenteditable="true"]')) {
146 return

Callers 1

showHotkeyModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected