(event: KeyboardEvent)
| 57 | } |
| 58 | |
| 59 | const handleKeyDown = (event: KeyboardEvent) => { |
| 60 | if (event.key === "Escape") { |
| 61 | setStore("contextMenuOpen", false) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | if (store.contextMenuOpen) { |
| 66 | document.addEventListener("click", handleClickOutside) |
nothing calls this directly
no test coverage detected