mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 15:05:38 +00:00
Fixed bug 4021 - Android, hard-coded Keycode value
Sylvain There is an hard-coded keycode value in SDLActivity.java
This commit is contained in:
parent
b401cfd915
commit
54340ab9de
|
@ -1519,7 +1519,7 @@ class SDLInputConnection extends BaseInputConnection {
|
||||||
* as we do with physical keyboards, let's just use it to hide the keyboard.
|
* 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");
|
String imeHide = SDLActivity.nativeGetHint("SDL_RETURN_KEY_HIDES_IME");
|
||||||
if ((imeHide != null) && imeHide.equals("1")) {
|
if ((imeHide != null) && imeHide.equals("1")) {
|
||||||
Context c = SDL.getContext();
|
Context c = SDL.getContext();
|
||||||
|
|
Loading…
Reference in a new issue