From e4aa606d7d71d9836908fab23aae7e99728b11ee Mon Sep 17 00:00:00 2001
From: DeaDDooMER <deaddoomer@deadsoftware.ru>
Date: Thu, 9 May 2019 18:43:29 +0300
Subject: [PATCH] fixed input locking after load game

---
 src/game/g_gui.pas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/game/g_gui.pas b/src/game/g_gui.pas
index 494839e..07a03c1 100644
--- a/src/game/g_gui.pas
+++ b/src/game/g_gui.pas
@@ -2336,7 +2336,7 @@ begin
         end;
     end;
 
-  g_GUIGrabInput := FWindow.FActiveControl = Self;
+  g_GUIGrabInput := (@FOnEnterEvent = nil) and (FWindow.FActiveControl = Self);
   g_Touch_ShowKeyboard(g_GUIGrabInput)
 end;
 
-- 
2.29.2