MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / onOpen

Method onOpen

src/modals/ICSNoteCreationModal.ts:44–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

handleCreateMethod · 0.95
createModalContentMethod · 0.95
addClassMethod · 0.65

Tested by

no test coverage detected