mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Pass unhandled Lua UI events to the parent
This commit is contained in:
parent
696be1cc39
commit
36c46ada6f
4 changed files with 61 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue