Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: ui/keyboard/resources/voice_input.js

Issue 16972006: Insert text directly from the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix include Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/resources/main.js ('k') | ui/keyboard/resources/webui/api_adapter.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/voice_input.js
diff --git a/ui/keyboard/resources/voice_input.js b/ui/keyboard/resources/voice_input.js
index bb8d9f72264ddc82e6c22ec7f2814aec70762bae..c6a2bb93a28e287d55c35f9ed71e378ad9378afc 100644
--- a/ui/keyboard/resources/voice_input.js
+++ b/ui/keyboard/resources/voice_input.js
@@ -46,9 +46,7 @@ VoiceInput.prototype = {
if (e.results[i].isFinal)
this.finalResult_ = e.results[i][0].transcript;
}
- for (var i = 0; i < this.finalResult_.length; i++) {
- sendKey(this.finalResult_.charAt(i));
- }
+ insertText(this.finalResult_);
},
/**
« no previous file with comments | « ui/keyboard/resources/main.js ('k') | ui/keyboard/resources/webui/api_adapter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698