diff options
author | Sam Lantinga <slouken@libsdl.org> | 2017-12-19 10:57:21 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2017-12-19 10:57:21 -0800 |
commit | ef7a48c03e139c63b018af3aa97f6a9d54f1740c (patch) | |
tree | fb6247a75da6abd0f0775c6b066e311e3311ef19 /include/SDL_hints.h | |
parent | 9b0cab6f4858909211b1c027bdd39b0ad4b711e1 (diff) |
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 0f2fb9ec6ad6.
Diffstat (limited to 'include/SDL_hints.h')
-rw-r--r-- | include/SDL_hints.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/SDL_hints.h b/include/SDL_hints.h index 0213daf6ca..41212d7a7e 100644 --- a/include/SDL_hints.h +++ b/include/SDL_hints.h @@ -721,17 +721,16 @@ extern "C" { #define SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH "SDL_ANDROID_SEPARATE_MOUSE_AND_TOUCH" /** - * \brief A variable to control whether the return key on the soft keyboard should hide the - * soft keyboard on Android. + * \brief A variable to control whether the return key on the soft keyboard + * should hide the soft keyboard on Android and iOS. * * The variable can be set to the following values: - * "0" - The return key will be handled as a key event. This is the behaviour of - * SDL <= 2.0.3. (default) + * "0" - The return key will be handled as a key event. This is the behaviour of SDL <= 2.0.3. (default) * "1" - The return key will hide the keyboard. * * The value of this hint is used at runtime, so it can be changed at any time. */ -#define SDL_HINT_ANDROID_RETURN_HIDES_IME "SDL_ANDROID_RETURN_HIDES_IME" +#define SDL_HINT_RETURN_KEY_HIDES_IME "SDL_RETURN_KEY_HIDES_IME" /** * \brief override the binding element for keyboard inputs for Emscripten builds |