#1702,Android soft keyboard fails to pass all input, by Jonathan Dearborn

This commit is contained in:
Gabriel Jacobo 2013-01-26 12:31:55 -03:00
parent 4cec546dca
commit 2420aca939

View file

@ -709,7 +709,9 @@ class SDLInputConnection extends BaseInputConnection {
*/
int keyCode = event.getKeyCode();
if (event.getAction() == KeyEvent.ACTION_DOWN) {
if (event.isPrintingKey()) {
commitText(String.valueOf((char) event.getUnicodeChar()), 1);
}
SDLActivity.onNativeKeyDown(keyCode);
return true;
} else if (event.getAction() == KeyEvent.ACTION_UP) {