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

Unified Diff: ui/keyboard/resources/main.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/keysets.html ('k') | ui/keyboard/resources/voice_input.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/main.js
diff --git a/ui/keyboard/resources/main.js b/ui/keyboard/resources/main.js
index 9ae319b41002552cd842b8d60fe1c83f25537e65..6b73a500bac586b56281d0c7236a515b0f23a0d8 100644
--- a/ui/keyboard/resources/main.js
+++ b/ui/keyboard/resources/main.js
@@ -11,24 +11,6 @@ var onResize = function() {
keyboard.style.fontSize = (height / FONT_SIZE_RATIO / ROW_LENGTH) + 'px';
};
-/**
- * Send the given key to chrome.
- */
-function sendKey(key) {
- var keyIdentifier = key;
-
- // Fix up some keys to their respective identifiers for convenience.
- if (keyIdentifier == ' ') {
- keyIdentifier = 'Spacebar';
- }
-
- var keyEvent = {
- keyIdentifier: keyIdentifier
- };
-
- sendKeyEvent(keyEvent);
-};
-
addEventListener('WebComponentsReady', function() {
keyboard.appendChild(
keysets.content.body.firstElementChild.createInstance());
« no previous file with comments | « ui/keyboard/resources/keysets.html ('k') | ui/keyboard/resources/voice_input.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698