Bug 78153 - Find dialog should have XUL dialog access keys

modified xul, js, and dtd to add them.  js needed modification because the text of the Find button is set in code.
r=aaronl, sr=blake, a=asa
This commit is contained in:
dean_tessman%hotmail.com 2002-03-07 02:40:27 +00:00
Родитель b24b11d263
Коммит e4e52cbde3
3 изменённых файлов: 13 добавлений и 5 удалений

Просмотреть файл

@ -21,6 +21,7 @@
* Contributor(s): Alec Flett <alecf@netscape.com>
* Bill Law <law@netscape.com>
* Blake Ross <blakeross@telocity.com>
* Dean Tessman <dean_tessman@hotmail.com>
* Matt Fisher <matt@netscape.com>
* Simon Fraser <sfraser@netscape.com>
* Stuart Parmenter <pavlov@netscape.com>
@ -82,6 +83,7 @@ function onLoad()
// Change "OK" to "Find".
dialog.find.label = document.getElementById("fBLT").getAttribute("label");
dialog.find.accessKey = document.getElementById("fBLT").getAttribute("accesskey");
// get the find instance
var finder = window.arguments[0];

Просмотреть файл

@ -24,6 +24,7 @@ Contributor(s):
Bill Law <law@netscape.com>
Blake Ross <blakeross@telocity.com>
Dan Rosen <dr@netscape.com>
Dean Tessman <dean_tessman@hotmail.com>
Simon Fraser <sfraser@netscape.com>
Stuart Parmenter <pavlov@netscape.com>
-->
@ -55,7 +56,7 @@ Contributor(s):
<rows>
<row>
<hbox align="center">
<label value="&findField.label;"/>
<label value="&findField.label;" accesskey="&findField.accesskey;" control="dialog.findKey"/>
</hbox>
<hbox align="center">
<textbox id="dialog.findKey" flex="1" oninput="doEnabling();"/>
@ -64,16 +65,16 @@ Contributor(s):
<row>
<spacer/>
<vbox align="start">
<checkbox id="dialog.caseSensitive" label="&caseSensitiveCheckbox.label;"/>
<checkbox id="dialog.wrap" label="&wrapCheckbox.label;"/>
<checkbox id="dialog.searchBackwards" label="&backwardsCheckbox.label;"/>
<checkbox id="dialog.caseSensitive" label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
<checkbox id="dialog.wrap" label="&wrapCheckbox.label;" accesskey="&wrapCheckbox.accesskey;"/>
<checkbox id="dialog.searchBackwards" label="&backwardsCheckbox.label;" accesskey="&backwardsCheckbox.accesskey;"/>
</vbox>
</row>
</rows>
</grid>
<!-- used to store the find text -->
<data style="display:none;" id="fBLT" label="&findButton.label;"/>
<data style="display:none;" id="fBLT" label="&findButton.label;" accesskey="&findButton.accesskey;"/>
<separator/>

Просмотреть файл

@ -3,9 +3,14 @@
<!ENTITY findDialog.title "Find in this Page">
<!ENTITY findDialogFrame.title "Find in this Frame">
<!ENTITY findField.label "Find text:">
<!ENTITY findField.accesskey "n">
<!ENTITY caseSensitiveCheckbox.label "Match upper/lower case">
<!ENTITY caseSensitiveCheckbox.accesskey "c">
<!ENTITY wrapCheckbox.label "Wrap around">
<!ENTITY wrapCheckbox.accesskey "W">
<!ENTITY backwardsCheckbox.label "Search backwards">
<!ENTITY backwardsCheckbox.accesskey "b">
<!ENTITY findField.tooltip "Type one or more words to search for">
<!ENTITY cancelButton.label "Cancel">
<!ENTITY findButton.label "Find">
<!ENTITY findButton.accesskey "F">