summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/resources/main.js
diff options
context:
space:
mode:
authorbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 07:50:36 +0000
committerbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 07:50:36 +0000
commitb42f8d9072bbabbcb5d04042fe4334f1fd4bff6a (patch)
tree34d99d9000d347cc54b263ad39a03e1f470ae19a /ui/keyboard/resources/main.js
parente45a2307a2d8caaba731ae6b02808c379bc459fa (diff)
downloadchromium_src-b42f8d9072bbabbcb5d04042fe4334f1fd4bff6a.zip
chromium_src-b42f8d9072bbabbcb5d04042fe4334f1fd4bff6a.tar.gz
chromium_src-b42f8d9072bbabbcb5d04042fe4334f1fd4bff6a.tar.bz2
Insert text directly from the virtual keyboard.
This allows the insertion of text that does not directly correspond to key codes. The new API introduced is a temporary solution to allow us to continue prototyping the virtual keyboard and understanding how the implementation will interact with IMEs until proper IME integration can be achieved. BUG=237533 Review URL: https://chromiumcodereview.appspot.com/16972006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/resources/main.js')
-rw-r--r--ui/keyboard/resources/main.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/ui/keyboard/resources/main.js b/ui/keyboard/resources/main.js
index 9ae319b..6b73a50 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());