Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
#1702,Android soft keyboard fails to pass all input, by Jonathan Dear…
Browse files Browse the repository at this point in the history
…born
  • Loading branch information
gabomdq committed Jan 26, 2013
1 parent 32ba874 commit 99d3522
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -709,7 +709,9 @@ public boolean sendKeyEvent(KeyEvent event) {
*/
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) {
Expand Down

0 comments on commit 99d3522

Please sign in to comment.