Merge pull request #8402 from Robyt3/Menus-Keyreader-UI-Inactive

Prevent UI elements from being hovered while key reader is active
This commit is contained in:
Dennis Felsing 2024-05-28 02:04:17 +00:00 committed by GitHub
commit 1460081d8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1172,6 +1172,12 @@ void CMenus::Render()
Ui()->RenderPopupMenus();
// Prevent UI elements from being hovered while a key reader is active
if(m_Binder.m_TakeKey)
{
Ui()->SetHotItem(nullptr);
}
// Handle this escape hotkey after popup menus
if(!m_ShowStart && ClientState == IClient::STATE_OFFLINE && Ui()->ConsumeHotkey(CUi::HOTKEY_ESCAPE))
{