Pass unhandled Lua UI events to the parent

This commit is contained in:
uramer 2022-03-14 19:07:23 +00:00 committed by Petr Mikheev
parent 696be1cc39
commit 36c46ada6f
4 changed files with 61 additions and 23 deletions

View file

@ -32,12 +32,19 @@ Properties
* - visible
- boolean (true)
- Defines if the widget is visible
* - propagateEvents
- boolean (true)
- Allows base widget events to propagate to the widget's parent.
.. TODO: document the mouse pointer property, when API for reading / adding pointer types is available
Events
------
Base widget events are special, they can propagate up to the parent widget.
This can be prevented by changing the `propagateEvents` property, or by assigning an event handler.
The event is still allowed to propagate if the event handler returns `true`.
.. list-table::
:header-rows: 1
:widths: 20 20 60