From 2f02939638c8364c0bf29520d826fb92d61ee945 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 5 Oct 2018 01:10:27 -0700 Subject: [PATCH] Always process key events before the IME --- app/src/main/java/com/limelight/ui/StreamView.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/limelight/ui/StreamView.java b/app/src/main/java/com/limelight/ui/StreamView.java index 5356f5bf..46d693b3 100644 --- a/app/src/main/java/com/limelight/ui/StreamView.java +++ b/app/src/main/java/com/limelight/ui/StreamView.java @@ -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;