From 503c41754490e7d1ada04292a86e50ffd39c9ef1 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 11 Jun 2019 16:35:43 +0200 Subject: [PATCH] ui/app: (android) enable IME dummy mode We don't have full IME-aware editor yet. Fortunately, the BaseInputConnection has a "dummy mode" setting to allow us to receive input from the fancier keyboards without implementing the full IME interface. Fixes gio#7 (I hope; I tested with SwiftKey that had the same symptoms) Signed-off-by: Elias Naur --- ui/app/GioView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/GioView.java b/ui/app/GioView.java index f4f1900b..f7c7a154 100644 --- a/ui/app/GioView.java +++ b/ui/app/GioView.java @@ -184,7 +184,9 @@ public class GioView extends SurfaceView implements Choreographer.FrameCallback private final Editable editable; InputConnection(View view) { - super(view, true); + // Passing false enables "dummy mode", where the BaseInputConnection + // attempts to convert IME operations to key events. + super(view, false); editable = Editable.Factory.getInstance().newEditable(""); }