From 813522cc0e7a8255e2d1a1c341a92aeab9f692fd Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Thu, 10 Apr 2025 19:29:11 +0200 Subject: [PATCH] Set tab-index="-1" for todo checkboxes Otherwise they will be focusable when opening the search panel and pressing tab to cycle between the fields --- src/editor/todo-checkbox.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/todo-checkbox.ts b/src/editor/todo-checkbox.ts index a25a1ee..2a74a2b 100644 --- a/src/editor/todo-checkbox.ts +++ b/src/editor/todo-checkbox.ts @@ -20,6 +20,7 @@ class CheckboxWidget extends WidgetType { let box = document.createElement("input") box.type = "checkbox" box.checked = this.checked + box.tabIndex = -1 box.style.margin = "0" box.style.padding = "0"