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

Unified Diff: ui/keyboard/resources/webui/api_adapter.js

Issue 20145004: Switch from text insertion to key press and release events on the virtual k… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code cleanup. Created 7 years, 3 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
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 3072775e3451718844fb3feb2056561617dcf15e..4adb1773b4ce0adc803cb4f0c0dab69c2ee54e7c 100644
--- a/ui/keyboard/resources/webui/api_adapter.js
+++ b/ui/keyboard/resources/webui/api_adapter.js
@@ -6,6 +6,10 @@ function insertText(text) {
chrome.send('insertText', [ text ]);
}
+function sendKeyEvent(event) {
+ chrome.send('sendKeyEvent', [ event ]);
+}
+
(function(exports) {
/**
* An array to save callbacks of each request.

Powered by Google App Engine
This is Rietveld 408576698