mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Prevent UI elements from being hovered while key reader is active
Since the key reader will intercept the next input, the other UI elements should not react to the hovered mouse.
This commit is contained in:
parent
5ad62b5732
commit
bd5ca951a7
|
@ -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