Folks,
I have a search field on my webpage and this webpage is used in Japanese mode too; the issue is when we type in Hiragana mode of Japanese language while using search box, it types in Japanese numbers; i am replacing them to english digits but while we are in Hiragana input mode we need to press TWO times the enter key to fire the search.
How can we implement something in Javascript or jQuery so that pressing Enter only once it fires the search instead of two times??
Code:
function cleanup(elem) {
elem.value = elem.value.replace(/[1234567890]/g, function (m) {
return String.fromCharCode(m.charCodeAt(0) - 65248)
});
}