Is there any guidance to implementing modal dialog...
# compose-desktop
o
Is there any guidance to implementing modal dialogs? As far as I understand it should be part of the composition through the whole lifetime of the dialog, are there any established practices on doing so? Also, how do I disable interaction with the rest of the UI while the dialog is open? Similar question about popup windows – like floating tooltips, popup menus, dismissing when clicked outside, etc.
j
cc @Filip Pavlis @Louis Pullen-Freilich [G]
c
@orangy I think I was just reading the Windowing docs on github and they mention that modals are supported and that they block interaction from the other windows. On mobile or else I would try to find the link
k
Popups should be dismissed straight out on outside touch
In Aurora right now I do it with a global
AWTListener
in here - https://github.com/kirill-grouchnikov/aurora/blob/master/window/src/desktopMain/kotlin/org/pushingpixels/aurora/window/AuroraWindow.kt#L234 - similar to how popups are dismissed in core Swing