mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2025-01-09 18:05:05 +01:00
Fix space with hardware keyboard
This commit is contained in:
parent
2621404695
commit
ca61f79c07
@ -809,7 +809,7 @@ class DummyEdit extends View implements View.OnKeyListener {
|
||||
public boolean onKey(View v, int keyCode, KeyEvent event) {
|
||||
|
||||
// This handles the hardware keyboard input
|
||||
if (event.isPrintingKey()) {
|
||||
if (event.isPrintingKey() || keyCode == 62) {
|
||||
if (event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||
ic.commitText(String.valueOf((char) event.getUnicodeChar()), 1);
|
||||
}
|
||||
@ -871,7 +871,7 @@ class SDLInputConnection extends BaseInputConnection {
|
||||
*/
|
||||
int keyCode = event.getKeyCode();
|
||||
if (event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||
if (event.isPrintingKey()) {
|
||||
if (event.isPrintingKey() || keyCode == 62) {
|
||||
commitText(String.valueOf((char) event.getUnicodeChar()), 1);
|
||||
}
|
||||
SDLActivity.onNativeKeyDown(keyCode);
|
||||
|
Loading…
Reference in New Issue
Block a user