Always process key events before the IME

This commit is contained in:
Cameron Gutman 2018-10-05 01:10:27 -07:00
parent 1d7c8697e9
commit 2f02939638

View File

@ -62,9 +62,8 @@ public class StreamView extends SurfaceView {
@Override
public boolean onKeyPreIme(int keyCode, KeyEvent event) {
// This callbacks allows us to override dumb IME behavior like when
// Samsung's default keyboard consumes Shift+Space. We'll process
// the input event directly if any modifier keys are down.
if (inputCallbacks != null && event.getModifiers() != 0) {
// Samsung's default keyboard consumes Shift+Space.
if (inputCallbacks != null) {
if (event.getAction() == KeyEvent.ACTION_DOWN) {
if (inputCallbacks.handleKeyDown(event)) {
return true;