From 6806e0022ac9f279b11c6abce97ace4e557b0227 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sun, 8 Oct 2023 21:51:18 -0400 Subject: [PATCH] Lobby: Only auto-focus chat edit box on non-touch platforms --- src/multiint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/multiint.cpp b/src/multiint.cpp index 2ac5781245c..3a9611fbbe7 100644 --- a/src/multiint.cpp +++ b/src/multiint.cpp @@ -7099,7 +7099,10 @@ TITLECODE WzMultiplayerOptionsTitleUI::run() W_EDITBOX* pChatEdit = dynamic_cast(widgGetFromID(psWScreen, MULTIOP_CHATEDIT)); if (pChatEdit) { - pChatEdit->simulateClick(&context, true); + if (wzSeemsLikeNonTouchPlatform()) // only grab focus for chat edit box on non-touch platforms (i.e. platforms that ought to have a physical keyboard) + { + pChatEdit->simulateClick(&context, true); + } } }