From ef2e200e28a451a3e430e3c6aa58ee3df9aabf32 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh Date: Wed, 12 Jan 2022 07:02:05 +0700 Subject: [PATCH] Bug fix: inputStringLength is not set back to 40 This caused a bug that clears the text when pressing backspace after the keyboard is displayed again. --- Natives/SurfaceViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Natives/SurfaceViewController.m b/Natives/SurfaceViewController.m index 1fa35baf..d7339ea4 100644 --- a/Natives/SurfaceViewController.m +++ b/Natives/SurfaceViewController.m @@ -691,7 +691,7 @@ int currentVisibility = 1; [self.inputView becomeFirstResponder]; // Empty the input field so that user will no longer able to select text inside. self.inputView.text = INPUT_SPACE_CHAR; - // Trigger a text field cursor lock + inputStringLength = INPUT_FULL_LENGTH; #ifndef DEBUG_VISIBLE_TEXT_FIELD self.inputView.alpha = 0.0f;