(task: TaskInfo, event: MouseEvent)
| 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) { |
no test coverage detected