mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Always process key events before the IME
This commit is contained in:
parent
1d7c8697e9
commit
2f02939638
@ -62,9 +62,8 @@ public class StreamView extends SurfaceView {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onKeyPreIme(int keyCode, KeyEvent event) {
|
public boolean onKeyPreIme(int keyCode, KeyEvent event) {
|
||||||
// This callbacks allows us to override dumb IME behavior like when
|
// This callbacks allows us to override dumb IME behavior like when
|
||||||
// Samsung's default keyboard consumes Shift+Space. We'll process
|
// Samsung's default keyboard consumes Shift+Space.
|
||||||
// the input event directly if any modifier keys are down.
|
if (inputCallbacks != null) {
|
||||||
if (inputCallbacks != null && event.getModifiers() != 0) {
|
|
||||||
if (event.getAction() == KeyEvent.ACTION_DOWN) {
|
if (event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||||
if (inputCallbacks.handleKeyDown(event)) {
|
if (inputCallbacks.handleKeyDown(event)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user