From 6eafb89e82060f10f3d07ba903a21d83b2ea517b Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 7 May 2025 13:52:52 +0200 Subject: [PATCH] Import Wizard: Fix focus loss on options page Also resolves an issue preventing the wizard from continuing when pressing the Enter key on this screen. --- chrome/content/zotero/import/importWizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/import/importWizard.js b/chrome/content/zotero/import/importWizard.js index 06cf082804..e0191b0d49 100644 --- a/chrome/content/zotero/import/importWizard.js +++ b/chrome/content/zotero/import/importWizard.js @@ -420,7 +420,7 @@ const Zotero_Import_Wizard = { // eslint-disable-line no-unused-vars }, updateFocus() { - (this.wizard.currentPage.querySelector('radiogroup:not([disabled]),checkbox:not([disabled])') ?? this.wizard.currentPage).focus(); + Services.focus.moveFocus(window, null, Services.focus.MOVEFOCUS_FIRST, 0); }, async startImport() {