mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
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:
commit
1460081d8c
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue