From 2162acb490c7e5a03ec2c3d4a71e6125f64cba14 Mon Sep 17 00:00:00 2001 From: Dawid Gan Date: Mon, 21 Jan 2019 23:49:12 +0100 Subject: tdf#102040 Don't type doubled characters when using external keyboard. Typically application should handle key press/release and multiple actions. The onKeyPreIme may be used to handle some keys early and it's not needed for writing text. And even if there would be a reason to use it, then it should return true to notify that the event was handled (otherwise we will get onKeyDown event for the same key). Change-Id: I49ce7f411fac92ff86ca042a7f7467e910e46350 Reviewed-on: https://gerrit.libreoffice.org/66708 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt (cherry picked from commit 2e0e0bf789af7c0de3507cc67ff293ad2c87da33) Reviewed-on: https://gerrit.libreoffice.org/75004 Reviewed-by: Thorsten Behrens --- android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java | 1 - 1 file changed, 1 deletion(-) diff --git a/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java b/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java index 804e7263594f..bbef709af297 100644 --- a/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java +++ b/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java @@ -31,7 +31,6 @@ public class LOKitInputConnectionHandler implements InputConnectionHandler { */ @Override public boolean onKeyPreIme(int keyCode, KeyEvent event) { - LOKitShell.sendKeyEvent(event); return false; } -- cgit