SDL: hide built-in keyboard with Back key

This commit is contained in:
Sergii Pylypenko
2015-07-29 16:37:21 +03:00
parent 762b1854a8
commit 4b96594339
2 changed files with 8 additions and 1 deletions

View File

@@ -525,10 +525,17 @@ public class MainActivity extends Activity
}
public boolean onKeyDown(int keyCode, final KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_BACK)
return true;
return false;
}
public boolean onKeyUp(int keyCode, final KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_BACK)
{
showScreenKeyboardWithoutTextInputField(); // Hide keyboard
return true;
}
return false;
}
}