mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12:34 +00:00
Make UI events travel up parent hierarchy until event is either :handled or there is no parent to notify
This commit is contained in:
@@ -23,6 +23,7 @@ module CyberarmEngine
|
||||
return :handled if handler.call(self, *args) == :handled
|
||||
end
|
||||
|
||||
parent.publish(event, *args) if parent
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user