Skip to content

Commit

Permalink
Fixed bug 4021 - Android, hard-coded Keycode value
Browse files Browse the repository at this point in the history
Sylvain

There is an hard-coded keycode value in SDLActivity.java
  • Loading branch information
slouken committed Feb 7, 2018
1 parent b401cfd commit 54340ab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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();
Expand Down

0 comments on commit 54340ab

Please sign in to comment.