vpat 26: quickformat more detailed instructions (#4004)

This commit is contained in:
abaevbog 2024-04-19 02:11:31 -04:00 committed by GitHub
parent 76a9b58914
commit 1dbbb708a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 4 deletions

View file

@ -165,6 +165,7 @@ var Zotero_QuickFormat = new function () {
let menuitem = document.getElementById(menuitemID);
if (menuitem && menuitem.getAttribute("hidden") != "true") {
document.getElementById("zotero-icon").removeAttribute("disabled");
document.getElementById("input-description").setAttribute("data-l10n-args", `{ "dialogMenu":"active"}`);
}
}
// Nodes for citation properties panel
@ -1078,6 +1079,7 @@ var Zotero_QuickFormat = new function () {
bubble.setAttribute("role", "button");
bubble.setAttribute("tabindex", "0");
bubble.setAttribute("aria-describedby", "bubble-description");
bubble.setAttribute("aria-haspopup", true);
bubble.className = "citation-dialog bubble";
// VoiceOver works better without it
if (!Zotero.isMac) {

View file

@ -87,7 +87,8 @@
</panel>
<panel id="citation-properties" type="arrow" orient="vertical"
onkeydown="Zotero_QuickFormat.onPanelKeyPress(event)"
onpopuphidden="Zotero_QuickFormat.onItemPopoverClosed(event)">
onpopuphidden="Zotero_QuickFormat.onItemPopoverClosed(event)"
role="dialog">
<vbox flex="1">
<description id="citation-properties-title" tabindex="1"/>
<hbox id="citation-properties-info" tabindex="2"/>

View file

@ -468,9 +468,15 @@ toggle-preview =
*[unknown] Toggle
} Attachment Preview
quickformat-aria-bubble = Press Down Arrow to open citation properties.
quickformat-aria-input = Type your search term. Use Down Arrow and Up Arrow to navigate the search results.
quickformat-aria-item = Press { return-or-enter } to select this item. Press Tab to return to the search field.
quickformat-general-instructions = Use Left/Right arrows to navigate the entries of this citation. {
$dialogMenu ->
[active] Press Shift-Tab to focus the dialog's menu.
*[other] { "" }
} Press { return-or-enter } to save edits to this citation. Press Escape to discard the changes and close the dialog.
quickformat-aria-bubble = Item included in this citation. Press Down Arrow to open a dialog with citation properties to add details. { quickformat-general-instructions }
quickformat-aria-input = Citation item search input. Type to search for an item to include in this citation. Then Press Tab to focus and navigate the list of search results to add to this citation. { quickformat-general-instructions }
quickformat-aria-item = Press { return-or-enter } to add this item to the citation. Press Tab to go back to the search field.
quickformat-accept =
.tooltiptext = Save edits to this citation