Reputation: 1333
When using Windows Speech Recognition or Dragon NaturallySpeaking in LightSwitch HTML 5 Client Forms, the webpage behaves as if nothing had been entered even though all required fields have been filled in using speech recognition.
I presume because no actual key is pressed the system is unaware that the text boxes have been filled in.
Is there a workaround for this?
Upvotes: 0
Views: 1095
Reputation: 1333
I have found that adding the following code in the post render event for all input text fields has fixed the problem by forcing the change event when the element loses focus otherwise the change event never fires:
$(element).focusout(function (e) {
//Force the change event to occur so that speech recognition works
$(e.target).change();
})
Upvotes: 1