Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions Client/core/CGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,21 @@ bool CLocalGUI::InputGoesToGUI()
if (!pGUI)
return false;

// Here we're supposed to check if things like menues are up, console is up or the chatbox is expecting input
// If the console is visible OR the chat is expecting input OR the mainmenu is visible
return (IsConsoleVisible() || IsMainMenuVisible() || IsChatBoxInputEnabled() || m_bForceCursorVisible || pGUI->GetGUIInputEnabled() ||
bool shouldShowCursorForGUI = false;
if (pGUI->GetGUIInputEnabled())
{
eInputMode inputMode = pGUI->GetGUIInputMode();
if (inputMode == INPUTMODE_NO_BINDS_ON_EDIT)
{
shouldShowCursorForGUI = true;
}
else if (inputMode == INPUTMODE_NO_BINDS)
{
shouldShowCursorForGUI = false;
}
}

return (IsConsoleVisible() || IsMainMenuVisible() || IsChatBoxInputEnabled() || m_bForceCursorVisible || shouldShowCursorForGUI ||
!CCore::GetSingleton().IsFocused() || IsWebRequestGUIVisible());
}

Expand Down