c5c613c82c
Instead of focusing the first condition, which ends up placing focus in the middle of the new window or modal. It is best to focus the first node, which is the general convention, per https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/, and what many screen reader users expect. When we focus a field in the middle of the window/dialog, it makes it seem for some users that this is the first node, which will make them miss all the fields above it. Also, linked search name input to its label in searchDialog.xhtml.
44 lines
1.6 KiB
HTML
44 lines
1.6 KiB
HTML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://zotero/skin/overlay.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css" type="text/css"?>
|
|
|
|
<!DOCTYPE bindings SYSTEM "chrome://zotero/locale/searchbox.dtd">
|
|
|
|
<window
|
|
title="&zotero.search.search;"
|
|
orient="vertical"
|
|
onload="doLoad();"
|
|
onunload="doUnload();"
|
|
drawintitlebar-platforms="mac"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
|
<dialog
|
|
id="zotero-search-dialog"
|
|
buttons="cancel,accept">
|
|
|
|
<script>
|
|
var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/titlebar.js", this);
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/searchDialog.js", this);
|
|
</script>
|
|
|
|
<popupset>
|
|
<panel is="autocomplete-richlistbox-popup"
|
|
id="search-autocomplete-popup"
|
|
type="autocomplete-richlistbox"
|
|
noautofocus="true"/>
|
|
</popupset>
|
|
|
|
<vbox id="zotero-search-box-container" flex="1">
|
|
<hbox align="center">
|
|
<label control="search-name" value="&zotero.search.name;"/>
|
|
<html:input id="search-name" type="text" width="275" maxlength="80"/>
|
|
</hbox>
|
|
<zoterosearch id="search-box" flex="1"/>
|
|
</vbox>
|
|
</dialog>
|
|
</window>
|