https://github.com/libsdl-org/Maelstrom/commit/6c0c38b52afcb3bb900d31f78d82bdc4be3f9adb
From 6c0c38b52afcb3bb900d31f78d82bdc4be3f9adb Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 9 Sep 2012 21:19:13 -0700
Subject: [PATCH] Hide the onscreen keyboard when the focus editbox goes
away...
---
screenlib/UIElementEditbox.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/screenlib/UIElementEditbox.cpp b/screenlib/UIElementEditbox.cpp
index 635504b9..2d8a6a10 100644
--- a/screenlib/UIElementEditbox.cpp
+++ b/screenlib/UIElementEditbox.cpp
@@ -42,6 +42,10 @@ UIElementEditbox::UIElementEditbox(UIBaseElement *parent, const char *name, UIDr
UIElementEditbox::~UIElementEditbox()
{
delete[] m_text;
+
+ if (m_focus) {
+ m_screen->DisableTextInput();
+ }
}
bool