Skip to content

Commit

Permalink
Update Window.lua
Browse files Browse the repository at this point in the history
Fixes an issue that causes the keyboard to completely break on certain mobile devices.
  • Loading branch information
lucasnielsen authored Aug 3, 2024
1 parent e2ece92 commit f800eb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cmdr/CmdrClient/CmdrInterface/Window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ function Window:LoseFocus(submit)

if Gui.Visible and not GuiService.MenuIsOpen then
-- self:SetEntryText("")
Entry.TextBox:CaptureFocus()
if not UserInputService.TouchEnabled then
Entry.TextBox:CaptureFocus()
end
elseif GuiService.MenuIsOpen and Gui.Visible then
self:Hide()
end
Expand Down

0 comments on commit f800eb2

Please sign in to comment.