fix speech-search
This commit is contained in:
parent
d98737b3ba
commit
5e22ea5b72
@ -22,10 +22,10 @@ window.plugin.speechSearch = function() {};
|
|||||||
|
|
||||||
window.plugin.speechSearch.setup = function() {
|
window.plugin.speechSearch.setup = function() {
|
||||||
// Give the search input the speech attribute
|
// Give the search input the speech attribute
|
||||||
$("#geosearch").attr("x-webkit-speech", "");
|
$("#search").attr("x-webkit-speech", "");
|
||||||
// Immediately search without further input
|
// Immediately search without further input
|
||||||
$("#geosearch").bind("webkitspeechchange", function() {
|
$("#search").bind("webkitspeechchange", function() {
|
||||||
$("#geosearch").trigger($.Event("keypress", {keyCode: 13}));
|
$("#search").trigger($.Event("keypress", {keyCode: 13}));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user