diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-02-19 16:02:03 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-23 10:10:27 +0100 |
commit | 89e9e70462d67b27682edc6b9eeded4e66ec293f (patch) | |
tree | 70b8de4a2d319b29a5db95cf8ae2094434279b2e /android | |
parent | eb8ed9fcc5253925ba33e6b84831c559453ad87b (diff) |
android: also send key event in onKeyMultiple and onKeyPreIme
Change-Id: Ib231edd7b659ca3d0360bb3ac3021ead652f5458
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java index 6a5837b18052..dc4c85669a67 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java @@ -7,6 +7,8 @@ import android.view.inputmethod.InputConnection; import org.mozilla.gecko.gfx.InputConnectionHandler; public class LOKitInputConnectionHandler implements InputConnectionHandler { + private static String LOGTAG = LOKitInputConnectionHandler.class.getSimpleName(); + @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { return null; @@ -14,6 +16,7 @@ public class LOKitInputConnectionHandler implements InputConnectionHandler { @Override public boolean onKeyPreIme(int keyCode, KeyEvent event) { + LOKitShell.sendKeyPressEvent(event); return false; } @@ -30,6 +33,7 @@ public class LOKitInputConnectionHandler implements InputConnectionHandler { @Override public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { + LOKitShell.sendKeyPressEvent(event); return false; } |