(e)
| 596 | |
| 597 | // ESC 键关闭 |
| 598 | const escHandler = function(e) { |
| 599 | if (e.key === 'Escape') { |
| 600 | modal.remove(); |
| 601 | document.removeEventListener('keydown', escHandler); |
| 602 | } |
| 603 | }; |
| 604 | document.addEventListener('keydown', escHandler); |
| 605 | } |
| 606 |
nothing calls this directly
no outgoing calls
no test coverage detected