[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - android/experimental

Miklos Vajna vmiklos at collabora.co.uk
Thu Jan 22 08:54:53 PST 2015


 android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 203725a7daccfb015f2242f37a26e4f66a97c1bb
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Jan 22 17:50:02 2015 +0100

    android: use getUnicodeChar() in LOKitTileProvider
    
    Follow gtktiledviewer's approach for keycodes: unless it's a special
    key, ask the system to provide the Unicode equivalent and send that.
    This makes typing work, except for special keys.
    
    Change-Id: If9891ddfb0d52e1160099aa00580d1b261e71e61

diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
index a6d8d79..0e0b031 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
@@ -278,7 +278,8 @@ public class LOKitTileProvider implements TileProvider, Document.MessageCallback
 
     @Override
     public void keyPress(KeyEvent keyEvent) {
-        mOffice.postKeyEvent(Office.KEY_PRESS, keyEvent.getKeyCode());
+        int code = keyEvent.getUnicodeChar();
+        mOffice.postKeyEvent(Office.KEY_PRESS, code);
     }
 
 


More information about the Libreoffice-commits mailing list