Skip to content

Commit

Permalink
Lobby: Only auto-focus chat edit box on non-touch platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 9, 2023
1 parent 50c48a4 commit 6806e00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/multiint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7099,7 +7099,10 @@ TITLECODE WzMultiplayerOptionsTitleUI::run()
W_EDITBOX* pChatEdit = dynamic_cast<W_EDITBOX*>(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);
}
}
}

Expand Down

0 comments on commit 6806e00

Please sign in to comment.