Fixed softkeyboard's (simulated) backspace not being recognized (#713)
This commit is contained in:
parent
b1727b9772
commit
92e85f9012
@ -139,8 +139,10 @@ public class AndroidInputHandler14 extends AndroidInputHandler implements View.O
|
|||||||
boolean isJoystick =
|
boolean isJoystick =
|
||||||
((source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) ||
|
((source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) ||
|
||||||
((source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK);
|
((source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK);
|
||||||
|
boolean isUnknown =
|
||||||
|
(source & android.view.InputDevice.SOURCE_UNKNOWN) == android.view.InputDevice.SOURCE_UNKNOWN;
|
||||||
|
|
||||||
if (isTouch && touchInput != null) {
|
if (touchInput != null && (isTouch || (isUnknown && this.touchInput.isSimulateKeyboard()))) {
|
||||||
// logger.log(Level.INFO, "onKey source: {0}, isTouch: {1}",
|
// logger.log(Level.INFO, "onKey source: {0}, isTouch: {1}",
|
||||||
// new Object[]{source, isTouch});
|
// new Object[]{source, isTouch});
|
||||||
consumed = touchInput.onKey(event);
|
consumed = touchInput.onKey(event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user