Closed sal0max closed 3 weeks ago
Things in this case are complicated. The two main problem areas are:
SwingPanel
SwingPanel
(1) is solved by https://github.com/JetBrains/compose-multiplatform-core/pull/915 but available only under a flag due to some issues. (2) with (1) in should work as-is on WIndows, but for macOS requires a workaround to redispatch Swing/AWT events to Compose is requried
Summarizing all points above it will be something like this - https://gist.github.com/MatkovIvan/11e08183b80f3a31b218a093a4ce2a9d
So it's possible to do things in this way, but I'd recommend avoid such situation if possible. Closing since it's already tracked in a couple of issues and I provided a way how to solve the problem
Describe the bug I tried to add a ContextMenuArea around a SwingPanel and to catch right clicks.
Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
Expected behavior A popup should appear