mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
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 <mail@eliasnaur.com>
This commit is contained in:
+3
-1
@@ -184,7 +184,9 @@ public class GioView extends SurfaceView implements Choreographer.FrameCallback
|
|||||||
private final Editable editable;
|
private final Editable editable;
|
||||||
|
|
||||||
InputConnection(View view) {
|
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("");
|
editable = Editable.Factory.getInstance().newEditable("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user