()
| 42 | } |
| 43 | |
| 44 | onOpen() { |
| 45 | this.containerEl.addClass("tasknotes-plugin", "ics-note-creation-modal"); |
| 46 | |
| 47 | // Add global keyboard shortcut handler for CMD/Ctrl+Enter |
| 48 | this.keyboardHandler = (e: KeyboardEvent) => { |
| 49 | if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) { |
| 50 | e.preventDefault(); |
| 51 | void this.handleCreate(); |
| 52 | } |
| 53 | }; |
| 54 | this.containerEl.addEventListener("keydown", this.keyboardHandler); |
| 55 | |
| 56 | this.createModalContent(); |
| 57 | } |
| 58 | |
| 59 | onClose() { |
| 60 | // Clean up keyboard handler |
nothing calls this directly
no test coverage detected