| commit | 2e0e0bf789af7c0de3507cc67ff293ad2c87da33 | [log] |
|---|---|---|
| author | Dawid Gan <deveee@gmail.com> | Mon Jan 21 23:49:12 2019 +0100 |
| committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | Fri Jun 28 09:47:18 2019 +0200 |
| tree | 608dc2ea2cc9dc6429136552567026893de534c2 | |
| parent | a08725165dfefa01dd491b3bd935d7a7d34b1877 [diff] |
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 <Samuel.Mehrbrodt@cib.de>
diff --git a/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java b/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java index 804e726..bbef709 100644 --- a/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java +++ b/android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java
@@ -31,7 +31,6 @@ */ @Override public boolean onKeyPreIme(int keyCode, KeyEvent event) { LOKitShell.sendKeyEvent(event); return false; }