mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-11 14:38:24 +02:00
Send SDL_EVENT_SCREEN_KEYBOARD_HIDDEN when the keyboard is hidden on Android
(cherry picked from commit fc2f4fcc22)
This commit is contained in:
@@ -5913,7 +5913,7 @@ bool SDL_ScreenKeyboardShown(SDL_Window *window)
|
||||
|
||||
void SDL_SendScreenKeyboardShown(void)
|
||||
{
|
||||
if (_this->screen_keyboard_shown) {
|
||||
if (!_this || _this->screen_keyboard_shown) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -5929,7 +5929,7 @@ void SDL_SendScreenKeyboardShown(void)
|
||||
|
||||
void SDL_SendScreenKeyboardHidden(void)
|
||||
{
|
||||
if (!_this->screen_keyboard_shown) {
|
||||
if (!_this || !_this->screen_keyboard_shown) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user