| Index: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
|
| diff --git a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
|
| index 2323a0ad3c8ea76b8747003745ba5ff1399db24b..52d1ffdf7c66892ca0c94e94e31008b3299e9b9f 100644
|
| --- a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
|
| +++ b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
|
| @@ -286,17 +286,22 @@ public class JniInterface {
|
| /** Passes mouse-wheel information to the native handling code. */
|
| private static native void nativeSendMouseWheelEvent(int deltaX, int deltaY);
|
|
|
| - /** Presses or releases the specified (nonnegative) key. Called on the UI thread. */
|
| - public static boolean sendKeyEvent(int keyCode, boolean keyDown) {
|
| + /**
|
| + * Presses or releases the specified (nonnegative) key. Called on the UI thread. If scanCode
|
| + * is not zero then keyCode is ignored.
|
| + */
|
| + public static boolean sendKeyEvent(int scanCode, int keyCode, boolean keyDown) {
|
| if (!sConnected) {
|
| return false;
|
| }
|
|
|
| - return nativeSendKeyEvent(keyCode, keyDown);
|
| + return nativeSendKeyEvent(scanCode, keyCode, keyDown);
|
| }
|
|
|
| - /** Passes key press information to the native handling code. */
|
| - private static native boolean nativeSendKeyEvent(int keyCode, boolean keyDown);
|
| + /**
|
| + * Passes key press information to the native handling code.
|
| + */
|
| + private static native boolean nativeSendKeyEvent(int scanCode, int keyCode, boolean keyDown);
|
|
|
| /** Sends TextEvent to the host. Called on the UI thread. */
|
| public static void sendTextEvent(String text) {
|
|
|