diff options
Diffstat (limited to 'ui/keyboard/resources/main.js')
-rw-r--r-- | ui/keyboard/resources/main.js | 18 |
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()); |