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

Method executeSingleClickAction

src/bases/TaskListView.ts:2709–2725  ·  view source on GitHub ↗
(task: TaskInfo, event: MouseEvent)

Source from the content-addressed store, hash-verified

2707 }
2708
2709 private async executeSingleClickAction(task: TaskInfo, event: MouseEvent): Promise<void> {
2710 if (event.ctrlKey || event.metaKey) {
2711 this.openTaskNote(task, true);
2712 return;
2713 }
2714
2715 switch (this.plugin.settings.singleClickAction) {
2716 case "edit":
2717 await this.editTask(task);
2718 break;
2719 case "openNote":
2720 this.openTaskNote(task, false);
2721 break;
2722 default:
2723 break;
2724 }
2725 }
2726
2727 private async executeDoubleClickAction(task: TaskInfo, event: MouseEvent): Promise<void> {
2728 switch (this.plugin.settings.doubleClickAction) {

Callers 1

handleCardClickMethod · 0.95

Calls 2

openTaskNoteMethod · 0.95
editTaskMethod · 0.95

Tested by

no test coverage detected