Чат: на телефоне после «Отправить» клавиатура закрывается полностью, без мигания

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alexander
2026-11-05 17:17:53 +01:00
co-authored by Claude Opus 5.5
parent 7d932e3cbc
commit d7348dd23d
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -171,7 +171,11 @@ public class ChatPanel : MonoBehaviour
{
inputField.text = "";
}
inputField.ActivateInputField(); // курсор остаётся в поле -- можно писать дальше
// ПК: курсор остаётся в поле -- можно писать дальше.
// Телефон: экранная клавиатура при «Отправить» закрывается сама, и повторная активация тут же открывала её
// снова -- клавиатура «мигала» (05.11). Теперь она закрывается полностью, до следующего касания поля
if (TouchScreenKeyboard.isSupported) inputField.DeactivateInputField();
else inputField.ActivateInputField();
}
static IChat Chat => GameServices.Get<IChat>();