| Index: ui/keyboard/resources/common.js
|
| diff --git a/ui/keyboard/resources/common.js b/ui/keyboard/resources/common.js
|
| index 03aa5509362eff8ab1e37db8234e5084672ae39b..6f01910e4ff84252f58b06a716326d2c0dae786a 100644
|
| --- a/ui/keyboard/resources/common.js
|
| +++ b/ui/keyboard/resources/common.js
|
| @@ -114,28 +114,15 @@ function transitionMode(transition) {
|
| setMode(MODE_TRANSITIONS[currentMode + transition]);
|
| }
|
|
|
| -function logIfError() {
|
| - if (chrome.runtime.lastError) {
|
| - console.log(chrome.runtime.lastError);
|
| - }
|
| -}
|
| -
|
| /**
|
| * Send the given key to chrome, via the experimental extension API.
|
| * @param {string} keyIdentifier The key to send.
|
| */
|
| function sendKey(keyIdentifier) {
|
| - // FIXME(bryeung)
|
| - console.log('Typed: ' + keyIdentifier);
|
| var keyEvent = {
|
| - type: 'keydown',
|
| keyIdentifier: keyIdentifier
|
| };
|
| - chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(keyEvent,
|
| - logIfError);
|
| - keyEvent.type = 'keyup';
|
| - chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(keyEvent,
|
| - logIfError);
|
| + sendKeyEvent(keyEvent);
|
|
|
| // Exit shift mode after pressing any key but space.
|
| if (currentMode == SHIFT_MODE && keyIdentifier != 'Spacebar') {
|
|
|