mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-12 01:15:39 +00:00
Fixed bug 4004 - iOS: don't hide keyboard on RETURN
Dominik Reichardt As discussed in 2012 the iOS onscreen keyboard hides when you hit RETURN (see https://discourse.libsdl.org/t/on-screen-keyboard-change/19216). IMO this is a bad idea to not be able to influence this behavior and just recently this was fixed for Android by adding the hint SDL_HINT_ANDROID_RETURN_HIDES_IME in changeset 11768 6ce3bb5e38a5.
This commit is contained in:
parent
fee2469c65
commit
b92e2f027a
3 changed files with 8 additions and 7 deletions
|
|
@ -1508,7 +1508,7 @@ class SDLInputConnection extends BaseInputConnection {
|
|||
*/
|
||||
|
||||
if (event.getKeyCode() == 66) {
|
||||
String imeHide = SDLActivity.nativeGetHint("SDL_ANDROID_RETURN_HIDES_IME");
|
||||
String imeHide = SDLActivity.nativeGetHint("SDL_RETURN_KEY_HIDES_IME");
|
||||
if ((imeHide != null) && imeHide.equals("1")) {
|
||||
Context c = SDL.getContext();
|
||||
if (c instanceof SDLActivity) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue