mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
GUIFormSpecMenu focus fixes
This commit is contained in:
@@ -77,6 +77,15 @@ public:
|
||||
m_stack.back()->setVisible(true);
|
||||
}
|
||||
|
||||
// Returns true to prevent further processing
|
||||
virtual bool preprocessEvent(const SEvent& event)
|
||||
{
|
||||
if(m_stack.size() != 0)
|
||||
return m_stack.back()->preprocessEvent(event);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
u32 menuCount()
|
||||
{
|
||||
return m_stack.size();
|
||||
|
Reference in New Issue
Block a user