From 5d316399085143a173d5f4836eeb3fb654ce5f48 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Sun, 30 Jun 2019 22:05:19 +0500 Subject: [PATCH] Full fix of partially working text input Previous fix related to this: 6a26c88a70ad3afb7a18ee3a1628fe46150aa147 --- src/xrUICore/EditBox/UICustomEdit.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrUICore/EditBox/UICustomEdit.cpp b/src/xrUICore/EditBox/UICustomEdit.cpp index 9d3d6223d85..ee5b8080a81 100644 --- a/src/xrUICore/EditBox/UICustomEdit.cpp +++ b/src/xrUICore/EditBox/UICustomEdit.cpp @@ -95,6 +95,10 @@ void CUICustomEdit::SendMessage(CUIWindow* pWnd, s16 msg, void* pData) m_bInputFocus = false; GetMessageTarget()->SendMessage(this, EDIT_TEXT_COMMIT, NULL); } + else if (msg == WINDOW_FOCUS_RECEIVED) + ec().on_ir_capture(); + else if (msg == WINDOW_FOCUS_LOST) + ec().on_ir_release(); } bool CUICustomEdit::OnMouseAction(float x, float y, EUIMessages mouse_action)