citation dlg: refocus input on cmd/ctrl-f (#5136)

Fixes: #5100
This commit is contained in:
abaevbog 2025-03-20 19:32:09 -07:00 committed by GitHub
parent 9a58be243e
commit eb54cd82f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();