Skip to content
Permalink
Browse files

Fixed bug 4021 - Android, hard-coded Keycode value

Sylvain

There is an hard-coded keycode value in SDLActivity.java
  • Loading branch information
slouken committed Feb 7, 2018
1 parent b401cfd commit 54340ab9deaebb11115d5b6a799f1795a9acee3e
Showing with 1 addition and 1 deletion.
  1. +1 −1 android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -1519,7 +1519,7 @@ public boolean sendKeyEvent(KeyEvent event) {
* as we do with physical keyboards, let's just use it to hide the keyboard.
*/

if (event.getKeyCode() == 66) {
if (event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
String imeHide = SDLActivity.nativeGetHint("SDL_RETURN_KEY_HIDES_IME");
if ((imeHide != null) && imeHide.equals("1")) {
Context c = SDL.getContext();

0 comments on commit 54340ab

Please sign in to comment.