[Libreoffice-commits] core.git: Branch 'distro/collabora/viewer' - android/experimental
Jan Holesovsky
kendy at collabora.com
Sun Feb 22 22:19:34 PST 2015
android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java | 45 ++++++++++
1 file changed, 45 insertions(+)
New commits:
commit fe6e315f34aaea394e7e464014697b8a4ef836b6
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Feb 23 07:17:41 2015 +0100
backport: Forgotten file.
Change-Id: I0ffe55d9beb3658d3ffdf93dc7867b0422c719e1
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java
new file mode 100644
index 0000000..36d477d
--- /dev/null
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitInputConnectionHandler.java
@@ -0,0 +1,45 @@
+package org.libreoffice;
+
+import android.view.KeyEvent;
+import android.view.inputmethod.EditorInfo;
+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;
+ }
+
+ @Override
+ public boolean onKeyPreIme(int keyCode, KeyEvent event) {
+ LOKitShell.sendKeyEvent(event);
+ return false;
+ }
+
+ @Override
+ public boolean onKeyDown(int keyCode, KeyEvent event) {
+ LOKitShell.sendKeyEvent(event);
+ return false;
+ }
+
+ @Override
+ public boolean onKeyLongPress(int keyCode, KeyEvent event) {
+ return false;
+ }
+
+ @Override
+ public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
+ LOKitShell.sendKeyEvent(event);
+ return false;
+ }
+
+ @Override
+ public boolean onKeyUp(int keyCode, KeyEvent event) {
+ LOKitShell.sendKeyEvent(event);
+ return false;
+ }
+}
More information about the Libreoffice-commits
mailing list