Xcode-iOS/Demos/src/keyboard.c
changeset 6654 2ecfb25be1e2
parent 6392 fa7eb111f994
child 7191 75360622e65f
     1.1 --- a/Xcode-iOS/Demos/src/keyboard.c	Sun Nov 04 20:20:53 2012 -0800
     1.2 +++ b/Xcode-iOS/Demos/src/keyboard.c	Sun Nov 04 21:53:28 2012 -0800
     1.3 @@ -291,7 +291,11 @@
     1.4              break;
     1.5          case SDL_MOUSEBUTTONUP:
     1.6              /*      mouse up toggles onscreen keyboard visibility */
     1.7 -            SDL_ToggleScreenKeyboard(window);
     1.8 +            if (SDL_IsTextInputActive()) {
     1.9 +                SDL_StopTextInput();
    1.10 +            } else {
    1.11 +                SDL_StartTextInput();
    1.12 +            }
    1.13              break;
    1.14          }
    1.15      }