Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(setup): make keyboard navigation work
Panagiotis Papadopoulos66c42f052436
diff --git a/src/views/setup.ejs b/src/views/setup.ejsindex c412a63202..c1844570b7 100644--- a/src/views/setup.ejs+++ b/src/views/setup.ejs@@ -53,20 +53,23 @@</div><div id="setup-type" data-bind="visible: step() == 'setup-type'" style="margin-top: 20px;">- <div class="radio" style="margin-bottom: 15px;">- <label><input type="radio" name="setup-type" value="new-document" data-bind="checked: setupType">- <%= t("setup.new-document") %></label>- </div>- <div class="radio" style="margin-bottom: 15px;">- <label><input type="radio" name="setup-type" value="sync-from-desktop" data-bind="checked: setupType">- <%= t("setup.sync-from-desktop") %></label>- </div>- <div class="radio" style="margin-bottom: 15px;">- <label><input type="radio" name="setup-type" value="sync-from-server" data-bind="checked: setupType">- <%= t("setup.sync-from-server") %></label>- </div>-- <button type="button" data-bind="disable: !setupTypeSelected(), click: selectSetupType" class="btn btn-primary"><%= t("setup.next") %></button>+ <form data-bind="submit: selectSetupType">++ <div class="radio" style="margin-bottom: 15px;">+ <label><input type="radio" name="setup-type" value="new-document" data-bind="checked: setupType"">+ <%= t("setup.new-document") %></label>+ </div>+ <div class="radio" style="margin-bottom: 15px;">+ <label><input type="radio" name="setup-type" value="sync-from-desktop" data-bind="checked: setupType">+ <%= t("setup.sync-from-desktop") %></label>+ </div>+ <div class="radio" style="margin-bottom: 15px;">+ <label><input type="radio" name="setup-type" value="sync-from-server" data-bind="checked: setupType"">+ <%= t("setup.sync-from-server") %></label>+ </div>++ <button type="submit" data-bind="disable: !setupTypeSelected()" class="btn btn-primary"><%= t("setup.next") %></button>+ </form></div><div data-bind="visible: step() == 'new-document-in-progress'">@@ -104,6 +107,8 @@</div><div data-bind="visible: step() == 'sync-from-server'">+ <form data-bind="submit: finish">+<h2><%= t("setup_sync-from-server.heading") %></h2><p><%= t("setup_sync-from-server.instructions") %></p>@@ -125,9 +130,9 @@<button type="button" data-bind="click: back" class="btn btn-secondary"><%= t("setup_sync-from-server.back") %></button>- + <button type="submit" class="btn btn-primary"><%= t("setup_sync-from-server.finish-setup") %></button>+ </form>- <button type="button" data-bind="click: finish" class="btn btn-primary"><%= t("setup_sync-from-server.finish-setup") %></button></div><div data-bind="visible: step() == 'sync-in-progress'">