From 55840d1d9e55787bddfa089b44f673d3368ef60e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 27 Apr 2026 11:03:09 -0700
Subject: [PATCH] Enable numeric keypad input on iOS
---
external/SDL | 2 +-
screenlib/SDL_FrameBuf.cpp | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/external/SDL b/external/SDL
index ee2bebba..259e4fe1 160000
--- a/external/SDL
+++ b/external/SDL
@@ -1 +1 @@
-Subproject commit ee2bebbace0e3605dee846db19f4359654dbd97f
+Subproject commit 259e4fe1a2aaec6cffb8644a2fb07b472443f571
diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp
index d7f34461..e6c78e07 100644
--- a/screenlib/SDL_FrameBuf.cpp
+++ b/screenlib/SDL_FrameBuf.cpp
@@ -413,11 +413,9 @@ FrameBuf::EnableTextInput(int textfieldX, int textfieldY, int textfieldWidth, in
SDL_SetTextInputArea(m_window, &textrect, 0);
SDL_PropertiesID props = SDL_CreateProperties();
-#if 0 // Currently showing the numeric keypad on iPad triggers keyboardWillHide(), stopping text input
if (numeric) {
SDL_SetNumberProperty(props, SDL_PROP_TEXTINPUT_TYPE_NUMBER, SDL_TEXTINPUT_TYPE_NUMBER);
}
-#endif
SDL_SetBooleanProperty(props, SDL_PROP_TEXTINPUT_MULTILINE_BOOLEAN, false);
SDL_StartTextInputWithProperties(m_window, props);
SDL_DestroyProperties(props);