From eb54cd82f64b460e3a57c530d4b8b7c385488025 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Thu, 20 Mar 2025 19:32:09 -0700 Subject: [PATCH] citation dlg: refocus input on cmd/ctrl-f (#5136) Fixes: #5100 --- .../zotero/integration/citationDialog/keyboardHandler.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs b/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs index 5bcc339d3f..932643c9d9 100644 --- a/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs +++ b/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs @@ -102,6 +102,10 @@ export class CitationDialogKeyboardHandler { handled = true; this.doc.dispatchEvent(new CustomEvent("dialog-cancelled")); } + else if (event.key == "f" && (Zotero.isMac ? event.metaKey : event.ctrlKey)) { + handled = true; + this._id("bubble-input").focus(); + } if (handled) { event.preventDefault(); event.stopPropagation();