Commit 99ffb603 authored by gerv%gerv.net's avatar gerv%gerv.net

bug 159200 - support accesskey in search page. Patch by gerv; 2xr=timeless.

parent e6b98f8f
...@@ -331,7 +331,7 @@ function selectProduct(f) { ...@@ -331,7 +331,7 @@ function selectProduct(f) {
<table> <table>
<tr> <tr>
<th align="right">Summary:</th> <th align="right"><u>S</u>ummary:</th>
<td> <td>
<select name="short_desc_type"> <select name="short_desc_type">
[% FOREACH qv = query_variants %] [% FOREACH qv = query_variants %]
...@@ -341,7 +341,8 @@ function selectProduct(f) { ...@@ -341,7 +341,8 @@ function selectProduct(f) {
</select> </select>
</td> </td>
<td> <td>
<input name="short_desc" size="40" value="[% default.short_desc.0 FILTER html %]"> <input name="short_desc" size="40" accesskey="s"
value="[% default.short_desc.0 FILTER html %]">
</td> </td>
<td> <td>
<input type="submit" value="[% button_name %]"> <input type="submit" value="[% button_name %]">
...@@ -354,12 +355,14 @@ function selectProduct(f) { ...@@ -354,12 +355,14 @@ function selectProduct(f) {
<td colspan="4"> <td colspan="4">
<table> <table>
<tr valign="bottom"> <tr valign="bottom">
<th align="left">Product:</th> <th align="left"><u>P</u>roduct:</th>
<th align="left"><a href="describecomponents.cgi">Component</a>:</th> <th align="left">
<th align="left">Version:</th> <a href="describecomponents.cgi">Co<u>m</u>ponent</a>:
</th>
<th align="left"><u>V</u>ersion:</th>
[% IF (Param("usetargetmilestone")) %] [% IF (Param("usetargetmilestone")) %]
<th align="left">Target:</th> <th align="left"><u>T</u>arget:</th>
[% END %] [% END %]
</tr> </tr>
...@@ -368,29 +371,39 @@ function selectProduct(f) { ...@@ -368,29 +371,39 @@ function selectProduct(f) {
[%# Can't use the select block here because of onChange and the fact that [%# Can't use the select block here because of onChange and the fact that
'component' is a toolkit reserved word - we use 'component_' instead. %] 'component' is a toolkit reserved word - we use 'component_' instead. %]
<td align="left"> <td align="left">
<select name="product" multiple="multiple" size="5" onchange="selectProduct(this.form);"> <label for="product" accesskey="p">
[% FOREACH p = product %] <select name="product" multiple="multiple" size="5" id="product"
<option value="[% p FILTER html %]" onchange="selectProduct(this.form);">
[% " selected" IF lsearch(default.product, p) != -1 %]> [% FOREACH p = product %]
[% p FILTER html %]</option> <option value="[% p FILTER html %]"
[% END %] [% " selected" IF lsearch(default.product, p) != -1 %]>
</select> [% p FILTER html %]</option>
[% END %]
</select>
</label>
</td> </td>
<td align="left"> <td align="left">
<select name="component" multiple="multiple" size="5"> <label for="component" accesskey="m">
[% FOREACH c = component_ %] <select name="component" id="component"
<option value="[% c FILTER html %]" multiple="multiple" size="5">
[% " selected" IF lsearch(default.component, c) != -1 %]> [% FOREACH c = component_ %]
[% c FILTER html %]</option> <option value="[% c FILTER html %]"
[% END %] [% " selected" IF lsearch(default.component, c) != -1 %]>
</select> [% c FILTER html %]</option>
[% END %]
</select>
</label>
</td> </td>
[% PROCESS select sel = { name => 'version', size => 5 } %] [% PROCESS select sel = { name => 'version',
size => 5,
accesskey => 'v' } %]
[% IF Param('usetargetmilestone') && target_milestone.size > 0 %] [% IF Param('usetargetmilestone') && target_milestone.size > 0 %]
[% PROCESS select sel = { name => 'target_milestone', size => 5 } %] [% PROCESS select sel = { name => 'target_milestone',
size => 5,
accesskey => 't' } %]
[% END %] [% END %]
</tr> </tr>
</table> </table>
...@@ -400,9 +413,12 @@ function selectProduct(f) { ...@@ -400,9 +413,12 @@ function selectProduct(f) {
[%# *** Comment URL Whiteboard Keywords *** %] [%# *** Comment URL Whiteboard Keywords *** %]
[% FOREACH field = [ [% FOREACH field = [
{ name => "long_desc", description => "A&nbsp;comment" }, { name => "long_desc", description => "A&nbsp;<u>C</u>omment",
{ name => "bug_file_loc", description => "The&nbsp;URL" }, accesskey => 'c' },
{ name => "status_whiteboard", description => "Whiteboard" } ] %] { name => "bug_file_loc", description => "The&nbsp;<u>U</u>RL",
accesskey => 'u' },
{ name => "status_whiteboard", description => "<u>W</u>hiteboard",
accesskey => 'w' } ] %]
[% UNLESS field.name == 'status_whiteboard' AND NOT Param('usestatuswhiteboard') %] [% UNLESS field.name == 'status_whiteboard' AND NOT Param('usestatuswhiteboard') %]
<tr> <tr>
...@@ -416,8 +432,9 @@ function selectProduct(f) { ...@@ -416,8 +432,9 @@ function selectProduct(f) {
[% END %] [% END %]
</select> </select>
</td> </td>
<td><input name="[% field.name %]" size="40" value=" <td><input name="[% field.name %]" size="40"
[% default.${field.name}.0 FILTER html %]"> accesskey="[% field.accesskey %]"
value="[% default.${field.name}.0 FILTER html %]">
</td> </td>
<td></td> <td></td>
</tr> </tr>
...@@ -426,7 +443,9 @@ function selectProduct(f) { ...@@ -426,7 +443,9 @@ function selectProduct(f) {
[% IF have_keywords %] [% IF have_keywords %]
<tr> <tr>
<th align="right"><a href="describekeywords.cgi">Keywords</a>:</th> <th align="right">
<a href="describekeywords.cgi"><u>K</u>eywords</a>:
</th>
<td> <td>
<select name="keywords_type"> <select name="keywords_type">
[% FOREACH qv = [ [% FOREACH qv = [
...@@ -441,7 +460,8 @@ function selectProduct(f) { ...@@ -441,7 +460,8 @@ function selectProduct(f) {
</select> </select>
</td> </td>
<td> <td>
<input name="keywords" size="40" value="[% default.keywords.0 FILTER html %]"> <input name="keywords" size="40" accesskey="k"
value="[% default.keywords.0 FILTER html %]">
</td> </td>
</tr> </tr>
[% END %] [% END %]
...@@ -453,21 +473,35 @@ function selectProduct(f) { ...@@ -453,21 +473,35 @@ function selectProduct(f) {
<table> <table>
<tr> <tr>
<th align="left"><a href="queryhelp.cgi#status">Status</a>:</th> <th align="left"><a href="queryhelp.cgi#status">St<u>a</u>tus</a>:</th>
<th align="left"><a href="queryhelp.cgi#resolution">Resolution</a>:</th> <th align="left">
<th align="left"><a href="queryhelp.cgi#severity">Severity</a>:</th> <a href="queryhelp.cgi#resolution"><u>R</u>esolution</a>:
<th align="left"><a href="queryhelp.cgi#priority">Priority</a>:</th> </th>
<th align="left"><a href="queryhelp.cgi#platform">Hardware</a>:</th> <th align="left"><a href="queryhelp.cgi#severity">S<u>e</u>verity</a>:</th>
<th align="left"><a href="queryhelp.cgi#opsys">OS</a>:</th> <th align="left"><a href="queryhelp.cgi#priority">Pr<u>i</u>ority</a>:</th>
<th align="left"><a href="queryhelp.cgi#platform"><u>H</u>ardware</a>:</th>
<th align="left"><a href="queryhelp.cgi#opsys"><u>O</u>S</a>:</th>
</tr> </tr>
<tr valign="top"> <tr valign="top">
[% PROCESS select sel = { name => 'bug_status', size => 7 } %] [% PROCESS select sel = { name => 'bug_status',
[% PROCESS select sel = { name => 'resolution', size => 7 } %] size => 7,
[% PROCESS select sel = { name => 'bug_severity', size => 7 } %] accesskey => 'a' } %]
[% PROCESS select sel = { name => 'priority', size => 7 } %] [% PROCESS select sel = { name => 'resolution',
[% PROCESS select sel = { name => 'rep_platform', size => 7 } %] size => 7,
[% PROCESS select sel = { name => 'op_sys', size => 7 } %] accesskey => 'r' } %]
[% PROCESS select sel = { name => 'bug_severity',
size => 7 }
accesskey => 'e' %]
[% PROCESS select sel = { name => 'priority',
size => 7 }
accesskey => 'i' %]
[% PROCESS select sel = { name => 'rep_platform',
size => 7 }
accesskey => 'h' %]
[% PROCESS select sel = { name => 'op_sys',
size => 7 }
accesskey => 'o' %]
</tr> </tr>
</table> </table>
...@@ -659,12 +693,15 @@ function selectProduct(f) { ...@@ -659,12 +693,15 @@ function selectProduct(f) {
[% BLOCK select %] [% BLOCK select %]
<td align="left"> <td align="left">
<select name="[% sel.name %]" multiple="multiple" size="[% sel.size %]"> <label for="[% sel.name %]" accesskey="[% sel.accesskey %]">
[% FOREACH name = ${sel.name} %] <select name="[% sel.name %]" id="[% sel.name %]"
<option value="[% name FILTER html %]" multiple="multiple" size="[% sel.size %]">
[% " selected" IF lsearch(default.${sel.name}, name) != -1 %]> [% FOREACH name = ${sel.name} %]
[% name FILTER html %]</option> <option value="[% name FILTER html %]"
[% END %] [% " selected" IF lsearch(default.${sel.name}, name) != -1 %]>
</select> [% name FILTER html %]</option>
[% END %]
</select>
</label>
</td> </td>
[% END %] [% END %]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment