Skip to content

Commit eb54cd8

Browse files
authored
citation dlg: refocus input on cmd/ctrl-f (#5136)
Fixes: #5100
1 parent 9a58be2 commit eb54cd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ export class CitationDialogKeyboardHandler {
102102
handled = true;
103103
this.doc.dispatchEvent(new CustomEvent("dialog-cancelled"));
104104
}
105+
else if (event.key == "f" && (Zotero.isMac ? event.metaKey : event.ctrlKey)) {
106+
handled = true;
107+
this._id("bubble-input").focus();
108+
}
105109
if (handled) {
106110
event.preventDefault();
107111
event.stopPropagation();

0 commit comments

Comments
 (0)