Kaydet (Commit) 89e9e704 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Miklos Vajna

android: also send key event in onKeyMultiple and onKeyPreIme

Change-Id: Ib231edd7b659ca3d0360bb3ac3021ead652f5458
üst eb8ed9fc
...@@ -7,6 +7,8 @@ import android.view.inputmethod.InputConnection; ...@@ -7,6 +7,8 @@ import android.view.inputmethod.InputConnection;
import org.mozilla.gecko.gfx.InputConnectionHandler; import org.mozilla.gecko.gfx.InputConnectionHandler;
public class LOKitInputConnectionHandler implements InputConnectionHandler { public class LOKitInputConnectionHandler implements InputConnectionHandler {
private static String LOGTAG = LOKitInputConnectionHandler.class.getSimpleName();
@Override @Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) { public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
return null; return null;
...@@ -14,6 +16,7 @@ public class LOKitInputConnectionHandler implements InputConnectionHandler { ...@@ -14,6 +16,7 @@ public class LOKitInputConnectionHandler implements InputConnectionHandler {
@Override @Override
public boolean onKeyPreIme(int keyCode, KeyEvent event) { public boolean onKeyPreIme(int keyCode, KeyEvent event) {
LOKitShell.sendKeyPressEvent(event);
return false; return false;
} }
...@@ -30,6 +33,7 @@ public class LOKitInputConnectionHandler implements InputConnectionHandler { ...@@ -30,6 +33,7 @@ public class LOKitInputConnectionHandler implements InputConnectionHandler {
@Override @Override
public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
LOKitShell.sendKeyPressEvent(event);
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment