From 4e1661ededb71244c9fec5e7f16713efc22570a4 Mon Sep 17 00:00:00 2001 From: sfence Date: Mon, 22 Jul 2024 19:14:53 +0200 Subject: [PATCH] Fix inventory items unresponsive after tab interaction (#14661) This was a soft lock until LMB was clicked again. --- src/gui/guiFormSpecMenu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 98974c6f6..8d554ef8a 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -4098,6 +4098,8 @@ bool GUIFormSpecMenu::preprocessEvent(const SEvent& event) skin->setFont(m_font); bool retval = hovered->OnEvent(event); skin->setFont(old_font); + // This is expected to be set to BET_OTHER with mouse UP event + m_held_mouse_button = BET_OTHER; return retval; } }