The x-webkit-speech attribute enables speech input on current versions
of Chrome. It's a frill, and I'm not sure we really want entire
libraries of patrons mumbling to themselves more than we already have,
but it's a low-cost frill so let's take advantage of it.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Scott <dan@coffeecode.net>
<option value="[_1]"[% c == o.value ? ' selected="selected"' : '' %]>[_2]</option>
[% END; END %]
</select>
- <input type='text' size='18' name='query' value="[% q | html %]" />
+ <input type='text' size='18' name='query' value="[% q | html %]" x-webkit-speech />
<a href="javascript:;" class="row-remover"
title="[% l('Remove row') %]" alt="[% l('Remove row') %]"
onclick='var row = this.parentNode.parentNode;var tbody = row.parentNode; if( tbody.getElementsByTagName("tr").length > 2 ) row.parentNode.removeChild(row);'><img src="[% ctx.media_prefix %]/images/adv_row_close_btn.png" /></a>
<input type="text" id="search_box" name="query" value="[% is_advanced ? ctx.processed_search_query : CGI.param('query') || l("Search Keyword") | html %]"
[% IF is_advanced %]style="width: 450px"[% END %]
onfocus="if (this.value=='[% l("Search Keyword") %]'){this.value='';this.style.color='#000';}"
- onblur="if (this.value==''){this.value='[% l("Search Keyword") %]';this.style.color='#999';}" />
+ onblur="if (this.value==''){this.value='[% l("Search Keyword") %]';this.style.color='#999';}"
+ x-webkit-speech />
</div>
<input name='page' type='hidden' value="0" />
</td>