mirror of
https://github.com/edubart/otclient.git
synced 2025-12-26 17:57:11 +01:00
fix focus bug, change battle events
This commit is contained in:
@@ -88,10 +88,7 @@ void UIManager::inputEvent(const InputEvent& event)
|
||||
|
||||
m_mouseReceiver->propagateOnMouseEvent(event.mousePos, widgetList);
|
||||
for(const UIWidgetPtr& widget : widgetList) {
|
||||
if(widget->isFocusable()) {
|
||||
if(UIWidgetPtr parent = widget->getParent())
|
||||
parent->focusChild(widget, Fw::MouseFocusReason);
|
||||
}
|
||||
widget->recursiveFocus(Fw::MouseFocusReason);
|
||||
if(widget->onMousePress(event.mousePos, event.mouseButton))
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user