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

Function handleSingleClick

src/utils/clickHandlers.ts:72–89  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

70 };
71
72 const handleSingleClick = async (e: MouseEvent) => {
73 if (onSingleClick) {
74 await onSingleClick(e);
75 return;
76 }
77
78 if (e.ctrlKey || e.metaKey) {
79 openNote(true); // Open in new tab
80 return;
81 }
82
83 const action = plugin.settings.singleClickAction;
84 if (action === "edit") {
85 await editTask();
86 } else if (action === "openNote") {
87 openNote(false); // Open in current tab
88 }
89 };
90
91 const handleDoubleClick = async (e: MouseEvent) => {
92 if (onDoubleClick) {

Callers 2

handleClickFunction · 0.85
handleCalendarTaskClickFunction · 0.85

Calls 2

openNoteFunction · 0.85
editTaskFunction · 0.85

Tested by

no test coverage detected