SDL/src/video
Sam Lantinga 030bb7282a Synchronize on-screen keyboard state with text input active state
When a hardware keyboard is attached to an iPad, you can easily trigger a set of on-screen keyboard transitions that will take place over time, and we need to track whether we're currently showing or hiding the keyboard and make sure we don't clobber the existing state during those transitions.

Testing:
* Connected a hardware keyboard to an iPad
* Launched checkkeys
* Noted the keyboard bar was active at the bottom of the screen and text input was active
* Tapped with both fingers to quickly toggle text input off and back on
* Noted the keyboard bar slid down and then back up, and text input was active
* Tapped on the keyboard bar to bring up the full on-screen keyboard and then closed it so the keyboard bar was still active, and text input was still active
* Tapped on the screen to turn text input off, noted the keyboard bar slid down
* Tapped with both fingers to quickly toggle text input on and back off
* Noted that the keyboard bar slid up and then back down, and text input was inactive
* Tapped on the screen to turn text input on, tapped on the keyboard bar to bring up the full on-screen keyboard, and text input was active
* Pressed a key on the physical keyboard, the on-screen keyboard closed, the key press and release was delivered (with no text input) and then the keyboard bar slid up, and text input was active again

Fixes https://github.com/libsdl-org/SDL/issues/7979

(cherry picked from commit c3288d113e434b20d2f0dda73210d3a52504d199)
2023-08-02 01:17:15 -07:00
..
android Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
arm ARM: NEON assembly optimization for SDL_FillRect 2019-10-24 21:17:52 -04:00
cocoa cocoa: Ignore first mouse motion event after enabling relative mode. 2023-08-01 18:34:03 -04:00
directfb Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
dummy Handle DPI scaling in SDL_GetWindowSurface 2023-06-14 17:23:54 -07:00
emscripten emscripten: Add JS library dependencies using EM_JS_DEPS macro 2023-07-06 18:15:49 -04:00
haiku Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
khronos remove unused vulkan/*.hpp files. 2023-07-17 00:11:51 +03:00
kmsdrm Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
n3ds Handle DPI scaling in SDL_GetWindowSurface 2023-06-14 17:23:54 -07:00
nacl Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
ngage Handle DPI scaling in SDL_GetWindowSurface 2023-06-14 17:23:54 -07:00
offscreen Handle DPI scaling in SDL_GetWindowSurface 2023-06-14 17:23:54 -07:00
os2 further mouse relative motion fix for os/2 (thanks Andrey Vasilkin) 2023-06-08 03:40:32 +03:00
pandora Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
ps2 Updated copyright for 2023 2023-01-09 09:48:21 -08:00
psp Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
qnx Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
raspberry Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
riscos Handle DPI scaling in SDL_GetWindowSurface 2023-06-14 17:23:54 -07:00
uikit Synchronize on-screen keyboard state with text input active state 2023-08-02 01:17:15 -07:00
vita Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
vivante Make sure the mouse and keyboard focus is cleared when a window is hidden 2023-07-25 11:50:54 -07:00
wayland wayland/video: Validate the returned window display pointer before dereferencing it 2023-07-14 10:43:54 -04:00
windows Fixed build 2023-08-01 18:58:21 -07:00
winrt Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
x11 x11: Blocking for window maximization should wait 100 ms, not 1000. 2023-08-01 13:55:04 -04:00
yuv2rgb Add optimiztion function with LSX in LoongArch 2022-06-06 08:49:09 -07:00
SDL_blit.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_blit.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_blit_0.c Added support for blitting SDL_PIXELFORMAT_INDEX1LSB 2023-06-19 08:36:30 -07:00
SDL_blit_1.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_blit_A.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_blit_auto.c Refresh generation of SDL_blit_auto.c after simplifying sdlgenblit.pl 2023-03-16 20:27:09 +01:00
SDL_blit_auto.h Refresh generation of SDL_blit_auto.c 2023-03-16 20:27:09 +01:00
SDL_blit_copy.c SDL_blit_copy: Don't call potentially FPU using SDL_memcpy in SDL_memcpyMMX 2023-03-27 06:13:28 +00:00
SDL_blit_copy.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_blit_N.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_blit_slow.c Simplify SDL_BLENDMODE_MUL 2023-03-16 20:27:09 +01:00
SDL_blit_slow.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_bmp.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_clipboard.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_egl.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_egl_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_fillrect.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_pixels.c Don't crash if SDL_MapRGB() and SDL_MapRGBA() are passed a NULL format 2023-06-27 16:08:53 -07:00
SDL_pixels_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_rect.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_rect_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_rect_impl.h Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_RLEaccel.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_RLEaccel_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_shape.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_shape_internals.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_stretch.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_surface.c Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
SDL_sysvideo.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_video.c Don't fail to create a window if it's too large, just clamp it to the max instead 2023-07-17 17:48:56 -07:00
SDL_vulkan_internal.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_vulkan_utils.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_yuv.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_yuv_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
sdlgenblit.pl Simplify SDL_BLENDMODE_MUL in sdlgenblit.pl 2023-03-16 20:27:09 +01:00