Index: ui/keyboard/resources/webui/api_adapter.js |
diff --git a/ui/keyboard/resources/webui/api_adapter.js b/ui/keyboard/resources/webui/api_adapter.js |
index e336b25269e114c640fb01129f6f3bd7e6cecf8f..1d24ba68bc2b80322c0a45cc3b66118dab793e44 100644 |
--- a/ui/keyboard/resources/webui/api_adapter.js |
+++ b/ui/keyboard/resources/webui/api_adapter.js |
@@ -2,9 +2,6 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-function sendKeyEvent(keyEvent) { |
- keyEvent.type = 'keydown'; |
- chrome.send('sendKeyEvent', [ keyEvent ]); |
- keyEvent.type = 'keyup'; |
- chrome.send('sendKeyEvent', [ keyEvent ]); |
+function insertText(text) { |
+ chrome.send('insertText', [ text ]); |
} |