diff --git a/main.ts b/main.ts index c90f25b..92da197 100644 --- a/main.ts +++ b/main.ts @@ -104,7 +104,8 @@ export default class HTMLCheckboxPlugin extends Plugin { /* Add menu for alternative checkboxes */ - this.registerDomEvent(window, "mousedown", (e: MouseEvent) => { + + this.registerDomEvent(window, "contextmenu", (e: MouseEvent) => { if (e.button == 2) { let target = e.target as HTMLElement if (target.localName == "input" && @@ -165,6 +166,14 @@ export default class HTMLCheckboxPlugin extends Plugin { } } }) + + + + + + + + } onunload() {} diff --git a/manifest.json b/manifest.json index 5cdc1dd..7ec7eb8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "html-checkboxes", "name": "HTML checkboxes", - "version": "1.0.3", + "version": "1.0.4", "minAppVersion": "0.15.0", "description": "Allows to quickly add HTML checkboxes to your notes and makes them clickable.", "author": "Anareaty",